|
PHP5中文手册
stream_socket_recvfrom(PHP 5) stream_socket_recvfrom — Receives data from a socket, connected or not Description
string stream_socket_recvfrom
( resource $socket
, int $length
[, int $flags
[, string &$address
]] )
The function stream_socket_recvfrom() accepts data from a remote socket up to length bytes. If address is provided it will be populated with the address of the remote socket. The value of flags can be any combination of the following:
Example#1 stream_socket_recvfrom() Example
<?php
See also stream_socket_sendto(), stream_socket_client(), and stream_socket_server(). |