1Net.recv(3kaya) Kaya module reference Net.recv(3kaya)
2
3
4
6 Net::recv - Recieve data from a connection.
7
9 String recv( NetHandle h, Int maxlen=-1, Int timeout=0 )
10
12 h The connection
13
14 maxlen The maximum number of bytes to read (or unlimited, if negative).
15 For TLS connections, this is always unlimited. Note that if the data to
16 be received contains multi-byte characters, care must be taken to avoid
17 ending receiving part-way through a multi-byte character.
18
19 timeout The number of seconds to wait without input before timing out.
20 The default is zero. For TLS connections, this parameter is ignored.
21
23 Reads up to maxlen bytes from the connection, and times out after time‐
24 out seconds.
25
27 Kaya standard library by Edwin Brady, Chris Morris and others
28 (kaya@kayalang.org). For further information see http://kayalang.org/
29
31 The Kaya standard library is free software; you can redistribute it
32 and/or modify it under the terms of the GNU Lesser General Public
33 License (version 2.1 or any later version) as published by the Free
34 Software Foundation.
35
37 Net.NetHandle (3kaya)
38 Net.accept (3kaya)
39 Net.connect (3kaya)
40 Net.microPending (3kaya)
41 Net.microRecv (3kaya)
42 Net.pending (3kaya)
43 Net.recvByte (3kaya)
44 Net.recvBytes (3kaya)
45 Net.send (3kaya)
46
47
48
49Kaya December 2010 Net.recv(3kaya)