PHP » PYTHON |
login |
register |
about
|
socket_bind(PHP 4 >= 4.1.0, PHP 5) socket_bind — Binds a name to a socket Description
bool socket_bind
( resource $socket
, string $address
[, int $port= 0
] )
Binds the name given in address to the socket described by socket . This has to be done before a connection is be established using socket_connect() or socket_listen(). Parameters
Return ValuesReturns TRUE on success or FALSE on failure. The error code can be retrieved with socket_last_error(). This code may be passed to socket_strerror() to get a textual explanation of the error. Examples
Example #1 Using socket_bind() to set the source address
<?php
Notes
See Also
|
more
Recently updated
more
Most requested
more
Last requests
|