From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S266175AbUALMYU (ORCPT ); Mon, 12 Jan 2004 07:24:20 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S266178AbUALMYU (ORCPT ); Mon, 12 Jan 2004 07:24:20 -0500 Received: from tataelxsi.co.in ([203.197.168.150]:38153 "HELO mailscanout256k.tataelxsi.co.in") by vger.kernel.org with SMTP id S266175AbUALMYM (ORCPT ); Mon, 12 Jan 2004 07:24:12 -0500 Reply-To: From: "VIJAYABHASKAR" To: Cc: Subject: RE: Very Urgent !! (2'nd Post) Not able to recieve messages using sock_recvmsg() Date: Mon, 12 Jan 2004 17:51:22 +0530 Message-ID: <004101c3d906$97b26d30$501e010a@telxsi.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4927.1200 Importance: Normal In-Reply-To: <200401121736.09720.krishnakumar@naturesoft.net> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org HI Krishna, It is not printing the length,stucking in that statement it self. I am sending about 10 characters from the client client using the following code to send: char buf[10]="123456789"; iov.iov_base=(void *)buf; iov.iov_len=(size_t)10; msg.msg_name=NULL; msg.msg_namelen=0; //sizeof(server); msg.msg_iov=&iov; msg.msg_iovlen=1; msg.msg_control=NULL; msg.msg_controllen=0; msg.msg_flags = 0; for (i=0;i len = sock_recvmsg(newsock, &msg, (size_t)buf, 0) printk("Return value = %d \n", len); > printk( KERN_ALERT "recieved message is %s",buf) Hope that helps, Regards, KK. PS: Are you an alumni of GEC TCR ?