sys_net: add few socket options (#1874)

This commit is contained in:
raven02 2016-07-10 02:30:56 +08:00 committed by GitHub
parent 6705a6ecc9
commit d4da0e052d
2 changed files with 25 additions and 5 deletions

View file

@ -71,6 +71,16 @@ namespace sys_net
OP_SO_TYPE = 0x1008,
OP_SO_NBIO = 0x1100, // Non-blocking IO
OP_SO_TPPOLICY = 0x1101,
OP_SO_REUSEADDR = 0x0004,
OP_SO_KEEPALIVE = 0x0008,
OP_SO_BROADCAST = 0x0020,
OP_SO_LINGER = 0x0080,
OP_SO_OOBINLINE = 0x0100,
OP_SO_REUSEPORT = 0x0200,
OP_SO_ONESBCAST = 0x0800,
OP_SO_USECRYPTO = 0x1000,
OP_SO_USESIGNATURE = 0x2000,
};
// TCP options