bind

bind SOCKET,NAME
Binds a network address to a socket, just as the bind system call does. Returns true if it succeeded, false otherwise. NAME should be a packed address of the appropriate type for the socket. See the examples in perlipc/"Sockets: Client/Server Communication".