
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.
Содержание BHT-BASIC 100 SERIES
Страница 1: ......
Страница 161: ...153 Chapter 10 Sleep Function CONTENTS 10 1 Sleep Function 154...
Страница 163: ...155 Chapter 11 Resume Function CONTENTS 11 1 Resume Function 156...
Страница 173: ...165 Chapter 13 Backlight Function CONTENTS 13 1 Backlight Function 166...
Страница 192: ...Chapter 14 Statement Reference 184 Example OPEN master Dat AS 1 FIELD 1 20 AS bar 10 AS ky CLFILE 1 CLOSE 1...
Страница 249: ...241 Example CLOSE IF kyIn Y THEN KILL Master Dat END IF Reference Statements CLFILE...
Страница 349: ...341 Run time errors Error code Meaning 05h Parameter out of the range checktype is out of the range...
Страница 383: ...375 Run time errors Reference Error code Meaning 05h Parameter out of the range Functions LEFT LEN and RIGHT...