Request number
|
Name
|
input
|
output
|
notes
|
0x1
|
SOAccept
|
4 bytes?
|
0
|
secret
|
0x2
|
SOBind
|
(int socket, struct sockaddr_in *address)
|
0
|
|
0x3
|
SOClose
|
4 bytes?
|
|
|
0x4
|
SOConnect
|
(int socket, struct sockaddr_in *address)
|
0
|
|
0x5
|
SOFcntl
|
|
|
|
0x6
|
SOGetPeerName
|
|
|
|
0x7
|
SOGetSockName
|
|
|
|
0x8
|
SOGetSockOpt
|
0
|
0x18 bytes
|
|
0x9
|
SOSetSockOpt
|
0x24 bytes?
|
0
|
|
0xA
|
SOListen
|
(s32 socket, s32 backlog)
|
|
secret
|
0xB
|
SOPoll
|
|
|
|
0xC
|
SORecvFrom
|
(int socket, char * message, int msg_len, int flags)
|
|
|
0xD
|
SOSendTo
|
(int socket, char * message, int msg_len, int flags)
|
|
|
0xE
|
SOShutdown
|
8 bytes?
|
|
|
0xF
|
SOSocket
|
0xC bytes (int domain, int type, int protocol)
|
0
|
|
0x10
|
SOGetHostId
|
none
|
none
|
returns 32-bit numeric IP
|
0x11
|
SOGetHostByName
|
(char *hostname)
|
hostent
|
|
0x12
|
SOGetHostByAddr
|
|
|
|
0x13
|
SOGetNameInfo
|
(vector) ?
|
|
|
0x15
|
SOInetAtoN
|
IPv4 address (string)
|
IPv4 address (4 bytes)
|
inet_aton()
|
0x16
|
SOInetPtoN
|
|
|
|
0x17
|
SOInetNtoP
|
|
|
secret
|
0x18
|
SOGetAddrInfo
|
(vector) ?
|
|
|
0x19
|
SOSockAtMark
|
|
|
secret
|
0x1C
|
SOGetInterfaceOpt
|
(vector) ?
|
|
|
0x1D
|
SOSetInterfaceOpt
|
(vector) ?
|
|
|
0x1E
|
SOSetInterface
|
|
|
secret
|
0x1F
|
SOStartup
|
0
|
0
|
|
0x30
|
ICMPSocket
|
|
|
secret
|
0x31
|
ICMPPing
|
|
|
secret
|
0x32
|
ICMPCancel
|
|
|
secret
|
0x33
|
ICMPClose
|
|
|
secret
|