mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "shesha bhushan" <bhushan_vadulas@hotmail.com>
To: linux-kernel@vger.kernel.org, kernelnewbies@nl.linux.org
Subject: send and recv function for UDP
Date: Tue, 25 Mar 2003 09:12:38 +0000	[thread overview]
Message-ID: <F8Z06YO4OPXok84FTA700005a3e@hotmail.com> (raw)

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


                 reply	other threads:[~2003-03-25  9:02 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=F8Z06YO4OPXok84FTA700005a3e@hotmail.com \
    --to=bhushan_vadulas@hotmail.com \
    --cc=kernelnewbies@nl.linux.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®