Copyright © tutorialspoint.com

PERL socketpair Function


Syntax

socketpair SOCKET1, SOCKET2, DOMAIN, TYPE, PROTOCOL


Definition and Usage

Creates an unnamed pair of connected sockets in the specified DOMAIN, of the specified TYPE, using PROTOCOL. If the system socketpair( ) function is not implemented, then it causes a fatal error.

Return Value

  • 0 on failure

  • 1 on success


Copyright © tutorialspoint.com