method recv
1 | role IO::Socket |
1.1 | (IO::Socket) method recv |
Documentation for method recv
assembled from the following types:
role IO::Socket
From IO::Socket
(IO::Socket) method recv
method recv(IO::Socket: Cool = Inf, :)
Receive a packet and return it, either as a Blob if :bin
was passed, or a Str if not. Receives up to $elems
or 65535
(whichever is smaller) bytes or characters.
Fails if the socket is not connected.