send and recv function for UDP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux