|
socket_recvfromReceives data from a socket whether or not it is connection-oriented Description
int socket_recvfrom
( resource
$socket
, string &$buf
, int $len
, int $flags
, string &$name
[, int &$port
] )
The socket_recvfrom function receives
The Parameters
Return Values
socket_recvfrom returns the number of bytes received,
or Examples
Example #1 socket_recvfrom example
<?php This example will initiate a UDP socket on port 1223 of 127.0.0.1 and print at most 12 characters received from a remote host. Changelog
See Also
|