Specifications

472
Syntax: CALL "SOCKET.FN3" .fcConnect SOCKFD%, FAMILY%,
PORT%, address
where address is ADDRESS or IPADDRESS$
Description: This function connects the specified socket identifier to another socket.
BSD4.4 socket API equivalent: This function is equivalent to the BSD4.4
socket API connect() 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:
.fcConnect Connect socket
.soINet 2 ARPA Internet protocols
Error code Meaning
105h
Power-off detected
106h
An internal error has occurred in the TCP/IP module during data
transmission.
107h
The TCP/IP module has not been initiated.
108h
The memory for the TCP/IP module has became insufficient dur-
ing data transmission.
201h
Cannot connect to socket
209h
Socket identifier is invalid.
216h
A parameter is invalid.
229h
The specified socket does not match the connection target socket.
22Fh
The specified address family is invalid for this socket.
230h
The specified address is already in use.
231h
The specified address is invalid.
238h
The specified socket is already connected.
23Ch
The connection attempt has timed out.
23Dh
Failed to connect
241h
There is no connection pathway to the host for TCP socket.