Specifications

Chapter 18. TCP/IP
471
18.6.2 Detailed Function Specifications
Syntax: CALL "SOCKET.FN3" .fcBind SOCKFD%, FAMILY%, PORT%,
address
where address is ADDRESS or IPADDRESS$
Description: This function assigns an address to the specified socket identifier.
BSD4.4 socket API equivalent: This function is equivalent to the BSD4.4
socket API bind() function.
Parameters:
SOCKFD% Socket identifier
FAMILY% Protocol family
PORT% Port
ADDRESS Local address for connection
IPADDRESS$ Internet address in dotted quad notation
The protocol family (
FAMILY%) must be 2, the value indicating the ARPA
Internet protocols.
Return value: (None)
Run-time errors:
.fcBind Assign address to socket
.soINet 2 ARPA Internet protocols
Error code Meaning
209h
Socket identifier is invalid.
216h
A parameter is invalid, or the socket is already bound.
224h
The socket is being assigned an address.
230h
The specified IP address is already in use.