lua-users home
lua-l archive

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


It was thus said that the Great Coroutines once stated:
> On Mon, Aug 25, 2014 at 5:03 PM, Sean Conner <sean@conman.org> wrote:
> 
> >   Sure, on the client side.  On the server side, there is no UDP equivalent
> > of listen().  Yes, you can use recv() only on the server side, but then you
> > remove any chance of sending back a reply (note:  this applies to UDP).
> 
> I believe this is still done with connect() to write()/send() to the
> associated peer.

  UDP is connectionless.  You have to recvfrom() to get the remote address
before you can call connect(), which now binds that socket to that one
remote address.  

  -spc