Re: Sending and receiving UDP socket broadcast messages
From: Arkady Frenkel (arkadyf_at_hotmailxdotxcom)
Date: 11/08/04
- Previous message: Arkady Frenkel: "Re: large tcp window"
- In reply to: Edward Diener: "Sending and receiving UDP socket broadcast messages"
- Next in thread: Alun Jones [MSFT]: "Re: Sending and receiving UDP socket broadcast messages"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 8 Nov 2004 23:26:30 +0200
network adapter , by default , set to full duplex , so it send/recv
simultaneously.
Arkady
"Edward Diener" <diener@ORsoftware.com> wrote in message
news:O6Yd$QcxEHA.1204@TK2MSFTNGP10.phx.gbl...
> I want to both send and receive broadcast messages from a single port. Is
> this possible without having receiving messages block the sending of
> broadcast messages ?
>
> Initially I thought I would do this by having two different sockets using
> the same port address and binding to that address, one for receiving and
one
> for sending. However the documentation for the socket option SO_REUSEADDR
> suggests that there is no guarantee that the socket I use for inputting
the
> messages will actually receive the data as opposed to the socket I use for
> sending messages. The SO_REUSEADDR doc says:
>
> "Also, if two sockets are bound to the same port the behavior is undefined
> as to which port will receive packets."
>
> I think this should really be "which socket" instead of "which port", but
> the sense is the same as above. This leads me to believe that that using
two
> different sockets on the same port, one for sending and one for receiving
is
> redundant. So the initial question stands: if I have received data waiting
> to be read at a port address, can I still send out data on that same port
> without losing my received data ?
>
>
- Previous message: Arkady Frenkel: "Re: large tcp window"
- In reply to: Edward Diener: "Sending and receiving UDP socket broadcast messages"
- Next in thread: Alun Jones [MSFT]: "Re: Sending and receiving UDP socket broadcast messages"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|