Hướng dẫn dùng recvfrom trong PHP
(PHP 4 >= 4.1.0, PHP 5, PHP 7, PHP 8) socket_recvfrom — Receives data from a socket whether or not it is connection-oriented Descriptionsocket_recvfrom( The
Parameterssocket The data The data received will be fetched to the variable specified with length Up to flags The value of flags
address If the socket is of the type port This argument only applies to Return Values socket_recvfrom() returns the number of bytes received, or Changelog
ExamplesExample #1 socket_recvfrom() example
= socket_create(AF_INET, SOCK_DGRAM, SOL_UDP); 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. See Also
lorin dot weilenmann at gmail dot com ¶ 7 years ago
ply2attoetensen-project.com ¶ 5 years ago
jaggerwang at gmail dot com ¶ 14 years ago
ryan_at_ryanfisher_dot_com ¶ 15 years ago
|