Sign in Join
FPDoc Onlineexperiment

fpsocketpair function

In unit Sockets

Create socket pair.

Declaration

pascal
function fpsocketpair(d: cint; xtype: cint; protocol: cint; sv: pcint)
: cint

Description

fpSocketPair creates 2 sockets in domain D, from type xType and using protocol Protocol. The pair is returned in sv, 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 FPSocket

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.