Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

LuaSocket get-/setoption methods #170

Open
Zash opened this issue Apr 14, 2021 · 3 comments
Open

LuaSocket get-/setoption methods #170

Zash opened this issue Apr 14, 2021 · 3 comments

Comments

@Zash
Copy link
Contributor

Zash commented Apr 14, 2021

LuaSocket exposes an interface to getsockopt(2) and setsockopt(2), in the form of the :getoption() and :setoption() methods exposed on TCP sockets.
These are not available on LuaSec wrapped TLS sockets. I wish they were.

@Tieske
Copy link
Member

Tieske commented Jan 10, 2023

same for getpeername

@Ensber
Copy link

Ensber commented Jan 11, 2024

and getsockname

@brunoos
Copy link
Member

brunoos commented May 22, 2024

we can import more code from luasocket to offer get/set options, but luasec is based on the version 3.0-RC1 of luasocket, which has less options than the current version.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Development

No branches or pull requests

4 participants