lkml.org 
[lkml]   [2003]   [Mar]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subjectsend and recv function for UDP
Date
Hi all,
An I use sock_recvmsg() sock_sendmsg() function to send data on a UDP socket
opened in a kernel module?

The problem is, when I use sock_recvmsg at the server side, it will not
wait at all for the client to send data. It behaves asynchronously. It will
come out with received count as zero.

I cannot use, sock_read since I cannot get the (struct file *), a required
parameter and there is no function like sock_recvfrom which is conunter part
of recvfrom for kernel programming.

These were the options I tried. Could any one suggest how to come around the
problem for sending data using UDP in a kernel module.

Thanking You
Shesha

_________________________________________________________________
Call US for just Rs. 5. http://www.msn.co.in/webtelephony/ Get a phone card

-
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 13:34    [W:0.027 / U:0.712 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site