Jump to content

Perl Programming/Keywords/bind

From Wikibooks, open books for an open world
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
Previous: BEGIN Keywords Next: binmode

The bind keyword

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

 bind SOCKET, NAME 
Previous: BEGIN Keywords Next: binmode