Re: Sending and receiving UDP socket broadcast messages

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Arkady Frenkel (arkadyf_at_hotmailxdotxcom)
Date: 11/08/04

  • Next message: Arkady Frenkel: "Re: Redirecting connections - other technologies"
    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 ?
    >
    >


  • Next message: Arkady Frenkel: "Re: Redirecting connections - other technologies"

    Relevant Pages

    • Sending and receiving UDP socket broadcast messages
      ... I want to both send and receive broadcast messages from a single port. ... the same port address and binding to that address, one for receiving and one ... if two sockets are bound to the same port the behavior is undefined ... if I have received data waiting ...
      (microsoft.public.win32.programmer.networks)
    • Re: Sending and receiving UDP socket broadcast messages
      ... >I want to both send and receive broadcast messages from a single port. ... the socket - when you send, you need to provide a destination remote address ... > the same port address and binding to that address, one for receiving and ...
      (microsoft.public.win32.programmer.networks)
    • Raw socket PF_PACKET questions
      ... Bind step is always necessary when opening PF_PACKET sockets? ... in sending, in receiving, in both? ... I cannot receive broadcast messages from a raw ethernet socket which ...
      (comp.os.linux.networking)
    • Re: network programming: how does s.accept() work?
      ... The program you contact at Google is a server. ... so, the server will usually assign a new port, say 56399, specifically ... connections to a server remain on the same port, ... sockets is what identifies them. ...
      (comp.lang.python)
    • Re: "C - like: THIS" pointer to a task type inside a task function
      ... clients through N sockets, using the SAME PORT. ... Each connection has a socket. ... reader queueing them and delivering each request per time to the ... Selectreturns list of sockets available to read without blocking. ...
      (comp.lang.ada)