|
@@ -5,8 +5,6 @@
|
|
|
# = Socket data types
|
|
|
##
|
|
|
|
|
|
-{ 'include': 'common.json' }
|
|
|
-
|
|
|
##
|
|
|
# @NetworkAddressFamily:
|
|
|
#
|
|
@@ -116,6 +114,24 @@
|
|
|
'cid': 'str',
|
|
|
'port': 'str' } }
|
|
|
|
|
|
+##
|
|
|
+# @FdSocketAddress:
|
|
|
+#
|
|
|
+# A file descriptor name or number.
|
|
|
+#
|
|
|
+# @str: decimal is for file descriptor number, otherwise it's a file
|
|
|
+# descriptor name. Named file descriptors are permitted in
|
|
|
+# monitor commands, in combination with the 'getfd' command.
|
|
|
+# Decimal file descriptors are permitted at startup or other
|
|
|
+# contexts where no monitor context is active.
|
|
|
+#
|
|
|
+#
|
|
|
+# Since: 1.2
|
|
|
+##
|
|
|
+{ 'struct': 'FdSocketAddress',
|
|
|
+ 'data': {
|
|
|
+ 'str': 'str' } }
|
|
|
+
|
|
|
##
|
|
|
# @InetSocketAddressWrapper:
|
|
|
#
|
|
@@ -147,12 +163,14 @@
|
|
|
'data': { 'data': 'VsockSocketAddress' } }
|
|
|
|
|
|
##
|
|
|
-# @StringWrapper:
|
|
|
+# @FdSocketAddressWrapper:
|
|
|
+#
|
|
|
+# @data: file descriptor name or number
|
|
|
#
|
|
|
# Since: 1.3
|
|
|
##
|
|
|
-{ 'struct': 'StringWrapper',
|
|
|
- 'data': { 'data': 'String' } }
|
|
|
+{ 'struct': 'FdSocketAddressWrapper',
|
|
|
+ 'data': { 'data': 'FdSocketAddress' } }
|
|
|
|
|
|
##
|
|
|
# @SocketAddressLegacy:
|
|
@@ -173,7 +191,7 @@
|
|
|
'inet': 'InetSocketAddressWrapper',
|
|
|
'unix': 'UnixSocketAddressWrapper',
|
|
|
'vsock': 'VsockSocketAddressWrapper',
|
|
|
- 'fd': 'StringWrapper' } }
|
|
|
+ 'fd': 'FdSocketAddressWrapper' } }
|
|
|
|
|
|
##
|
|
|
# @SocketAddressType:
|
|
@@ -186,11 +204,7 @@
|
|
|
#
|
|
|
# @vsock: VMCI address
|
|
|
#
|
|
|
-# @fd: decimal is for file descriptor number, otherwise a file
|
|
|
-# descriptor name. Named file descriptors are permitted in
|
|
|
-# monitor commands, in combination with the 'getfd' command.
|
|
|
-# Decimal file descriptors are permitted at startup or other
|
|
|
-# contexts where no monitor context is active.
|
|
|
+# @fd: Socket file descriptor
|
|
|
#
|
|
|
# Since: 2.9
|
|
|
##
|
|
@@ -200,7 +214,7 @@
|
|
|
##
|
|
|
# @SocketAddress:
|
|
|
#
|
|
|
-# Captures the address of a socket, which could also be a named file
|
|
|
+# Captures the address of a socket, which could also be a socket file
|
|
|
# descriptor
|
|
|
#
|
|
|
# @type: Transport type
|
|
@@ -213,4 +227,4 @@
|
|
|
'data': { 'inet': 'InetSocketAddress',
|
|
|
'unix': 'UnixSocketAddress',
|
|
|
'vsock': 'VsockSocketAddress',
|
|
|
- 'fd': 'String' } }
|
|
|
+ 'fd': 'FdSocketAddress' } }
|