[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Speed of Lua's immutable strings vs buffers (split from Re: Pooling of strings is good)
- From: Sean Conner <sean@...>
- Date: Mon, 25 Aug 2014 20:40:25 -0400
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
- References:
- Re: Pooling of strings is good, Axel Kittenberger
- Re: Pooling of strings is good, Coroutines
- Re: Pooling of strings is good, Roberto Ierusalimschy
- Re: Pooling of strings is good, Coroutines
- Speed of Lua's immutable strings vs buffers (split from Re: Pooling of strings is good), Sean Conner
- Re: Speed of Lua's immutable strings vs buffers (split from Re: Pooling of strings is good), Coroutines
- Re: Speed of Lua's immutable strings vs buffers (split from Re: Pooling of strings is good), Sean Conner
- Re: Speed of Lua's immutable strings vs buffers (split from Re: Pooling of strings is good), Coroutines
- Re: Speed of Lua's immutable strings vs buffers (split from Re: Pooling of strings is good), Sean Conner
- Re: Speed of Lua's immutable strings vs buffers (split from Re: Pooling of strings is good), Coroutines