Thomasdezeeuw / gaea

Low-level library to build event driven applications, supporting lightweight non-blocking I/O.
https://docs.rs/gaea/
MIT License
16 stars 0 forks source link

Expand TcpStream and UdpSocket options #31

Open Thomasdezeeuw opened 5 years ago

Thomasdezeeuw commented 5 years ago

From the manual for setsockopt:

SO_KEEPALIVE    enables keep connections alive
SO_LINGER       linger on close if data present
SO_OOBINLINE    enables reception of out-of-band data in band
SO_SNDBUF       set buffer size for output
SO_RCVBUF       set buffer size for input
SO_SNDLOWAT     set minimum count for output
SO_RCVLOWAT     set minimum count for input
SO_SNDTIMEO     set timeout value for output
SO_RCVTIMEO     set timeout value for input