Specifications
Chapter 18. TCP/IP
469
■ Function Number List
Number Used to:
Corresponding
Socket API Function
.fcAccept 1* –– accept()
.fcBind 2 Assign address to socket bind()
.fcConnect 3 Connect socket connect()
.fcGPName 4* –– getpeername()
.fcGSName 5* –– getsockname()
.fcGSckOpt 6 Get socket option getsockopt()
.fcHToNL 7 Convert host long (4 bytes) to network byte
order
htonl()
.fcHToNS 8 Convert host short (2 bytes) to network byte
order
htons()
.fcINetAdr 9 Convert Internet address from dotted quad
notation to 32-bit integer
inet_addr()
.fcListen 10* –– listen()
.fcNToHL 11 Convert network long (4 bytes) to host byte
order
ntohl()
.fcNToHS 12 Convert network short (2 bytes) to host byte
order
ntohs()
.fcReadv 13* –– readv()
.fcRecv 14 Receive data sent to the specified TCP
socket
recv()
.fcRcvfrom 15 Receive data sent to the specified UDP
socket
recvfrom()
.fcResvPrt 16* –– rresvport()
.fcSelect 17 Monitor socket requests select()
.fcFDZERO 18 Initialize socket identifier set FD_ZERO macro
.fcFDSET 19 Add socket identifier to socket identifier set FD_SET macro
.fcFDCLR 20 Delete socket identifier from socket identifier
set
FD_CLR macro
.fcFDISSET 21 Get socket identifier status from socket iden-
tifier set
FD_ISSET macro
.fcSend 22 Send message to another TCP socket send()
.fcSendto 23 Send message to another UDP socket sendto()
.fcSSckOpt 24 Set socket options setsockopt()
.fcShutdwn 25 Shut down socket shutdown()
* Socket API function not supported by SOCKET.FN3 library.