
390
Function #3 .fcConnect
Connect socket
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.
.soINet
2
ARPA Internet protocols
When specifying the value greater than 32767, describe in hexadecimal
notation.
Example: PORT% = &h8000 ' Specify Port 32768
Return value: (None)
Kommentare zu diesen Handbüchern