描述
This function receives a message on SOCKET attempting to read LENGTH bytes, placing the data read into variable SCALAR.The FLAGS argument takes the same values as the recvfrom( ) system function, on which the function is based. When communicating with sockets, this provides a more reliable method of reading fixed-length data than the sysread function or the line-based operator <FH>.
語法
以下是此函數的簡單語法-
recv SOCKET, SCALAR, LEN, FLAGS
返回值
此函數在標量context中返回:錯誤時為undef或讀取的字節數。
Perl 中的 recv函數 - 無涯教程網無涯教程網提供描述This function receives a message on SOCKET attempting to read LENGTH bytes,...https://www.learnfk.com/perl/perl-recv.html