lkml.org 
[lkml]   [2004]   [Jan]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectNot able to recieve messages using sock_recvmsg()
Date
-HI All,
-I am not able to recieve messages using sock_recvmsg()
-Server running on TCP port in kernel space and client is in ser space.
-sending messages to the server, i didn't see any message from client.
-but there is no error while connecting to the server
-This is the code i am using
- msg.msg_name = NULL;
-msg.msg_namelen = 0;
-msg.msg_iov = &iov;
-msg.msg_iovlen = 1;
-msg.msg_control = NULL;
-msg.msg_controllen = 0;
-msg.msg_flags = 0
-len = 0
- len = sock_recvmsg(newsock, &msg, (size_t)buf, 0)
- printk( KERN_ALERT "recieved message is %s",buf)
-But not printing the content of buffer.
-Any help in this regard is highly appreciated
-Thanks
-Bhaskar

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:00    [W:0.021 / U:1.368 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site