Perl Programming/Keywords/bind

From Wikibooks, open books for an open world
Jump to navigation Jump to search
Previous: BEGIN Keywords Next: binmode

The bind keyword[edit | edit source]

The bind function that binds a network address NAME to a SOCKET as bind(2) does it under UNIX, and returns true on success. NAME should contain a packed address of the appropriate type of SOCKET.

Syntax[edit | edit source]

  bind SOCKET, NAME
Previous: BEGIN Keywords Next: binmode