lunarmodules / luasec

LuaSec
Other
369 stars 135 forks source link

LuaSocket get-/setoption methods #170

Open Zash opened 3 years ago

Zash commented 3 years ago

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 commented 1 year ago

same for getpeername

Ensber commented 10 months ago

and getsockname

brunoos commented 6 months ago

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.