From: bernd@petrovitsch.priv.at (Bernd Petrovitsch)
To: kernelnewbies@lists.kernelnewbies.org
Subject: Problem with a UDP server implements
Date: Wed, 19 Oct 2011 09:28:13 +0200 [thread overview]
Message-ID: <1319009294.20227.22.camel@thorin> (raw)
In-Reply-To: <CAOe6JY0xSSmc8dGyYeo8i84CyWtGVmmraSnKvW0_9YLOg_PH+w@mail.gmail.com>
Hi!
On Die, 2011-10-18 at 22:48 +0800, tao jiang wrote:
[...]
> Thanks for your guide.
> But there is still a question
> if recvfrom() used, how to figure out the client's dest ip for reply ?
> i.e. on which ip the server receieved the request
> when construct the IP header, i don't know which saddr to fill in
Ooops, forgot that we need the destination address of the received
packet too to construct the answer for it.
Then yes, it seems that you would need the raw packet on the receiving
side too.
[ Full quote deelted ]
Bernd
--
Bernd Petrovitsch Email : bernd at petrovitsch.priv.at
LUGA : http://www.luga.at
next prev parent reply other threads:[~2011-10-19 7:28 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-14 17:51 Problem with a UDP server implements jiangtao.jit
2011-10-15 6:04 ` michi1 at michaelblizek.twilightparadox.com
2011-10-15 8:29 ` tao jiang
2011-10-15 9:01 ` michi1 at michaelblizek.twilightparadox.com
2011-10-15 9:50 ` tao jiang
2011-10-15 11:58 ` Bernd Petrovitsch
2011-10-17 23:26 ` tao jiang
2011-10-18 9:20 ` Bernd Petrovitsch
2011-10-18 14:48 ` tao jiang
2011-10-19 7:28 ` Bernd Petrovitsch [this message]
2011-10-21 13:07 ` tao jiang
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=1319009294.20227.22.camel@thorin \
--to=bernd@petrovitsch.priv.at \
--cc=kernelnewbies@lists.kernelnewbies.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.