.\" 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.pending" "3kaya" "August 2014" "Kaya" "Kaya module reference" .SH "NAME" Net::pending \- Return whether data is waiting at a socket. .SH "SYNOPSIS" .B Bool pending( \fINetHandle h, Int timeout=5\fP .B ")" .SH "ARGUMENTS" .PP .B "h" The connection .PP .B "timeout" The number of seconds to wait for data before timing out (defaults to five) .SH "DESCRIPTION" .PP Return whether data is waiting at a socket, returning true if so, and returning false if there is still no data after the timeout period. .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.microPending"(3kaya) .PP .B "Net.microRecv"(3kaya) .PP .B "Net.recv"(3kaya) .PD 0.4v