Perl bind Function

Advertisements


Description

This function binds the network ADDRESS to the filehandle identified by SOCKET. The ADDRESS should be a packed address of the appropriate type for the socket being opened.

Syntax

Following is the simple syntax for this function:

bind SOCKET, ADDRESS 

Return Value

This function returns 0 on failure and 1 on success.

Example

Following is the example code showing its basic usage:

#!/usr/bin/perl

When above code is executed, it produced following result




Advertisements
Advertisements