[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Besides LuaSocket, is there any other library that provides support for the TCP and UDP transport layers for Lua?
- From: 孙世龙 sunshilong <sunshilong369@...>
- Date: Thu, 28 Jan 2021 09:36:39 +0800
Adrian Perez de Castro >I have used cqueues [1] a few times in the
past, which worked wonderfully.
Martin Angers > I second cqueues.
Thanks to both of you.
It's a pity that cqueues could not support both Windows and Linux.
On Wed, Jan 27, 2021 at 9:50 PM Martin Angers <martin.n.angers@gmail.com> wrote:
>
> On Wed Jan 27, 2021 at 8:32 AM EST, Adrian Perez de Castro wrote:
> > Hello!
> >
> > On Wed, 27 Jan 2021 20:59:27 +0800 孙世龙 sunshilong
> > <sunshilong369@gmail.com> wrote:
> >
> > > Besides LuaSocket, is there any other library that provides support
> > > for the TCP and UDP transport layers for Lua?
> > >
> > > I am using vanilla Lua.
> > >
> > > Stable and open source project is preferred.
> > > Any guideline or suggestion is welcome.
> >
> > I have used cqueues a few times in the past, which worked
> > wonderfully.
>
> I second cqueues, it is a great library that provides a full
> non-blocking environment for networking (using coroutines and
> kqueue/epoll), but note that it is POSIX only.
>
> For something smaller in scope and features, I implemented a Lua wrapper
> [1] around the socket99 C library [2], it provides a nice API to sockets
> (POSIX-only too)
>
> [1]: https://git.sr.ht/~mna/luasock99
> [2]: https://github.com/silentbicycle/socket99