help files
Z505 | PasWiki | FUQ | Search | Main Docs | API Guide



[Overview][Constants][Types][Procedures and functions] Reference for unit 'Sockets' (#rtl)

SocketPair

Create socket pair

Declaration

Source position: socketsh.inc line 194

function SocketPair(

  Domain: LongInt;

  SocketType: LongInt;

  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

Str2UnixSockAddr

  

Convert path to TUnixSockAddr

Notes

 No notes exist for this page yet. 





lufdoc, Powtils, fpc, freepascal, delphi, kylix, c/c++, mysql, cgi web framework docs, Z505