mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
mruby-socet: add socket constants
Introduced in Ruby3.2: - SO_INCOMING_CPU - SO_INCOMING_NAPI_ID - SO_RTABLE - SO_SETFIB - SO_USER_COOKIE - TCP_KEEPALIVE - TCP_CONNECTION_INFO
This commit is contained in:
@@ -385,6 +385,21 @@
|
||||
#if defined(SO_TYPE)
|
||||
define_const(SO_TYPE);
|
||||
#endif
|
||||
#if defined(SO_INCOMING_CPU)
|
||||
define_const(SO_INCOMING_CPU);
|
||||
#endif
|
||||
#if defined(SO_INCOMING_NAPI_ID)
|
||||
define_const(SO_INCOMING_NAPI_ID);
|
||||
#endif
|
||||
#if defined(SO_RTABLE)
|
||||
define_const(SO_RTABLE);
|
||||
#endif
|
||||
#if defined(SO_SETFIB)
|
||||
define_const(SO_SETFIB);
|
||||
#endif
|
||||
#if defined(SO_USER_COOKIE)
|
||||
define_const(SO_USER_COOKIE);
|
||||
#endif
|
||||
#if defined(SOCK_DGRAM)
|
||||
define_const(SOCK_DGRAM);
|
||||
#endif
|
||||
@@ -457,3 +472,9 @@
|
||||
#if defined(TCP_WINDOW_CLAMP)
|
||||
define_const(TCP_WINDOW_CLAMP);
|
||||
#endif
|
||||
#if defined(TCP_KEEPALIVE)
|
||||
define_const(TCP_KEEPALIVE);
|
||||
#endif
|
||||
#if defined(TCP_CONNECTION_INFO)
|
||||
define_const(TCP_CONNECTION_INFO);
|
||||
#endif
|
||||
|
||||
@@ -136,6 +136,11 @@ SO_SNDTIMEO
|
||||
SO_SPLICE
|
||||
SO_TIMESTAMP
|
||||
SO_TYPE
|
||||
SO_INCOMING_CPU
|
||||
SO_INCOMING_NAPI_ID
|
||||
SO_RTABLE
|
||||
SO_SETFIB
|
||||
SO_USER_COOKIE
|
||||
|
||||
SOCK_DGRAM
|
||||
SOCK_RAW
|
||||
@@ -163,3 +168,5 @@ TCP_QUICKACK
|
||||
TCP_SACK_ENABLE
|
||||
TCP_SYNCNT
|
||||
TCP_WINDOW_CLAMP
|
||||
TCP_KEEPALIVE
|
||||
TCP_CONNECTION_INFO
|
||||
|
||||
Reference in New Issue
Block a user