next up previous contents index
Next: Str2UnixSockAddr Up: Functions and Procedures Previous: Socket

SocketPair

   

Declaration:

Function SocketPair (Domain,SocketType,Protocol:Longint;var Pair:TSockArray) : Longint;

Description:

SocketPair creates 2 sockets in domain Domain, from type SocketType and using protocol Protocol.

The pair is returned in Pair, and they are indistinguishable.

The function returns -1 upon error and 0 upon success.

Errors:

Errors are reported in SocketError, and are the same as in Socket

See also:



Michael Van Canneyt
Thu Sep 10 13:59:33 CEST 1998