stream_socket_rec­vfrom

Dostupnost ve verzích: PHP 5.0

Receives data from a socket, connected or not

Parametry

Parametr Datový typ Výchozí hodnota Poznámka
$socket resource   The remote socket.
$length int   The number of bytes to receive from the socket.
$flags int null, The value of flags can be any combination of the following:
STREAM_OOB Process OOB (out-of-band) data.
STREAM_PEEK Retrieve data from the socket, but do not consume the buffer. Subsequent calls to fread or stream_socket_rec­vfrom will see the same data.
$address string null If address is provided it will be populated with the address of the remote socket.

Návratové hodnoty

string

the read data, as a string

Další zdroje

http://php.net/…recvfrom.php

Sponzorované odkazy
Pomohl Vám tento článek?