简体   繁体   中英

Lua: Raw Sockets

I'm trying to get sockets to work on a port that's already in use.

I know LuaSocket--however I can not get LuaSocket to work on a local port that's already in use.

Thanks

You can't. Ports cannot have multiple sockets open there.

As Puppy said, this is impossible.

But, depending on what exactly you want to archive, there might be other solutions. Is this the server or a client?

Maybe you can interrupt one socket to give the other time to do his work, or so?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM