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.
Summary of Contents for BHT-BASIC 100 SERIES
Page 1: ......
Page 161: ...153 Chapter 10 Sleep Function CONTENTS 10 1 Sleep Function 154...
Page 163: ...155 Chapter 11 Resume Function CONTENTS 11 1 Resume Function 156...
Page 173: ...165 Chapter 13 Backlight Function CONTENTS 13 1 Backlight Function 166...
Page 249: ...241 Example CLOSE IF kyIn Y THEN KILL Master Dat END IF Reference Statements CLFILE...