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:
Yukihiro "Matz" Matsumoto
2022-12-19 18:59:10 +09:00
parent 772bf559ef
commit f2d43069f0
2 changed files with 28 additions and 0 deletions
+21
View File
@@ -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
+7
View File
@@ -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