Line 2:
Line 2:
Fill me in!
Fill me in!
−
−
socket:
−
ios_ioctl( fd, 0xF, &inbuf, 0xC, 0, 0);
−
close:
−
ios_ioctl( fd, 3, &inbuf, 4, 0, 0);
−
listen:
−
ios_ioctl( fd, 0xA, &inbuf, 8, 0, 0);
−
accept:
−
ios_ioctl( fd, 1, &inbuf, 4, 0, 0);
−
bind:
−
ios_ioctl( fd, 2, &inbuf, 0x24, 0, 0);
−
connect:
−
ios_ioctl( fd, 4, &inbuf, 0x24, 0, 0);
−
GetSockOpt:
−
ios_ioctl( fd, 8, 0, 0, &outbuf, 0x18);
−
SetSockOpt:
−
ios_ioctl( fd, 9, &inbuf, 0x24, 0, 0);
−
shutdown:
−
ios_ioctl( fd, 8, &inbuf, 8, 0, 0);
−
GetHostID:
−
ios_ioctl( fd, 0x10, 0, 0, 0, 0);
−
InetAtoN:
−
ios_ioctl( fd, 0x15, &inbuf, strlen, &outbuf, 4);
{| border=1
{| border=1
Line 30:
Line 7:
|Request number || Name || input || output || notes
|Request number || Name || input || output || notes
|-
|-
−
| 0x1? || SOAccept || ? || ? || secret
+
| 0x1 || SOAccept || 4 bytes? || 0 || secret
|-
|-
−
| 0x2 || SOBind || ? || ? || ?
+
| 0x2 || SOBind || 0x24 bytes? || 0 || ?
|-
|-
−
| 0x3 || SOClose || ? || ? || ?
+
| 0x3 || SOClose || 4 bytes? || ? || ?
|-
|-
−
| 0x4 || SOConnect || ? || ? || ?
+
| 0x4 || SOConnect || 0x24 bytes? || 0 || ?
|-
|-
| 0x5 || SOFcntl || ? || ? || ?
| 0x5 || SOFcntl || ? || ? || ?
Line 42:
Line 19:
| 0x7 || SOGetSockName || ? || ? || ?
| 0x7 || SOGetSockName || ? || ? || ?
|-
|-
−
| 0x8 || SOGetSockOpt || ? || ? || ?
+
| 0x8 || SOGetSockOpt || 0 || 0x18 bytes || ?
|-
|-
−
| 0x9 || SOSetSockOpt || ? || ? || ?
+
| 0x9 || SOSetSockOpt || 0x24 bytes || 0 || ?
|-
|-
−
| 0xA? || SOListen || ? || ? || secret
+
| 0xA || SOListen || 8 bytes? || ? || secret
|-
|-
| 0xB || SOPoll || ? || ? || ?
| 0xB || SOPoll || ? || ? || ?
Line 54:
Line 31:
| 0xD || SOSend / SOSendTo || (vector) ? || ? || ?
| 0xD || SOSend / SOSendTo || (vector) ? || ? || ?
|-
|-
−
| 0xE || SOShutdown || ? || ? || ?
+
| 0xE || SOShutdown || 8 bytes? || 0 || ?
|-
|-
−
| 0xF || __SOCreateSocket || ? || ? || ?
+
| 0xF || __SOCreateSocket || 0xC bytes? || 0 || ?
|-
|-
−
| 0x10 || SOGetHostId || none || ? || probably returns 32-bit numeric IP
+
| 0x10 || SOGetHostId || none || none || probably returns 32-bit numeric IP
|-
|-
| 0x11 || SOGetHostByName || ? || ? || ?
| 0x11 || SOGetHostByName || ? || ? || ?
|-
|-
−
| 0x15 || SOInetAtoN || ? || ? || ?
+
| 0x15 || SOInetAtoN || hostname (null-terminated string)|| 4 bytes || does DNS lookup
|-
|-
| 0x16 || SOInetPtoN || ? || ? || ?
| 0x16 || SOInetPtoN || ? || ? || ?