.\" This man page is automatically generated using .\" kayadoc2man from the Kaya development tools and the -xmldocs compile .\" option. Editing it directly is not encouraged. .\" It is under the same license as the source .k file that it was .\" generated from. .TH "Net.recv" "3kaya" "August 2014" "Kaya" "Kaya module reference" .SH "NAME" Net::recv \- Recieve data from a connection. .SH "SYNOPSIS" .B String recv( \fINetHandle h, Int maxlen=-1, Int timeout=0\fP .B ")" .SH "ARGUMENTS" .PP .B "h" The connection .PP .B "maxlen" The maximum number of bytes to read (or unlimited, if negative). For TLS connections, this is always unlimited. Note that if the data to be received contains multi-byte characters, care must be taken to avoid ending receiving part-way through a multi-byte character. .PP .B "timeout" The number of seconds to wait without input before timing out. The default is zero. For TLS connections, this parameter is ignored. .SH "DESCRIPTION" .PP Reads up to \fImaxlen\fP bytes from the connection, and times out after \fItimeout\fP seconds. .SH "AUTHORS" Kaya standard library by Edwin Brady, Chris Morris and others (kaya@kayalang.org). For further information see http://kayalang.org/ .SH LICENSE The Kaya standard library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License (version 2.1 or any later version) as published by the Free Software Foundation. .SH "RELATED" .PD 0 .PP .B "Net.NetHandle"(3kaya) .PP .B "Net.accept"(3kaya) .PP .B "Net.connect"(3kaya) .PP .B "Net.microPending"(3kaya) .PP .B "Net.microRecv"(3kaya) .PP .B "Net.pending"(3kaya) .PP .B "Net.recvByte"(3kaya) .PP .B "Net.recvBytes"(3kaya) .PP .B "Net.send"(3kaya) .PD 0.4v