You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As of right now, Socket.get() and Socket.set() assume that the level parameter which is passed to getsockopt() / setsockopt() os SOL_SOCKET.
However, there exist other options that don't necessarily assume the level parameter is SOL_SOCKET, such as TCP_NODELAY.
To expose these other options, the idea is to replace the tag payload types of the union SocketOption with a tuple of length two comprised of the level and option parameter.
The text was updated successfully, but these errors were encountered:
As of right now,
Socket.get()
andSocket.set()
assume that the level parameter which is passed togetsockopt()
/setsockopt()
osSOL_SOCKET
.However, there exist other options that don't necessarily assume the level parameter is
SOL_SOCKET
, such asTCP_NODELAY
.To expose these other options, the idea is to replace the tag payload types of the union
SocketOption
with a tuple of length two comprised of the level and option parameter.The text was updated successfully, but these errors were encountered: