Net.recv(3kaya) Kaya module reference Net.recv(3kaya)NAME
Net::recv - Recieve data from a connection.
SYNOPSIS
String recv( NetHandle h, Int maxlen=-1, Int timeout=0 )
ARGUMENTS
h The connection
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.
timeout The number of seconds to wait without input before timing out. The default is zero. For TLS connections, this parameter is ignored.
DESCRIPTION
Reads up to maxlen bytes from the connection, and times out after timeout seconds.
AUTHORS
Kaya standard library by Edwin Brady, Chris Morris and others (kaya@kayalang.org). For further information see http://kayalang.org/
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.
RELATED Net.NetHandle(3kaya)Net.accept(3kaya)Net.connect(3kaya)Net.microPending(3kaya)Net.microRecv(3kaya)Net.pending(3kaya)Net.recvByte(3kaya)Net.recvBytes(3kaya)Net.send(3kaya)Kaya October 2012 Net.recv(3kaya)
Check Out this Related Man Page
Net.sendByte(3kaya) Kaya module reference Net.sendByte(3kaya)NAME
Net::sendByte - Send a single byte across a connection.
SYNOPSIS
Void sendByte( NetHandle h, Int byte )
ARGUMENTS
h The connection
byte The byte to send
DESCRIPTION
Send a single byte across a connection. The Int passed should be between 0 and 255, or the results are unpredictable. This function does
not yet support TLS connections.
AUTHORS
Kaya standard library by Edwin Brady, Chris Morris and others (kaya@kayalang.org). For further information see http://kayalang.org/
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.
RELATED Net.NetHandle(3kaya)Net.accept(3kaya)Net.closeConnection(3kaya)Net.connect(3kaya)Net.send(3kaya)Net.sendBytes(3kaya)Net.recv(3kaya)Kaya October 2012 Net.sendByte(3kaya)
Hey,
I am learning to program a TCP server and managed to get it up and running (I am using Windows 98SE).
I can use the send function to send information to the client and I can use the recv function to ask the user to pass information through, but when I do so it only allows the client to... (1 Reply)
I am opening a server socket on one of our machines and connection to it on the other machine. After making the connection if ether one of the systems does a recv() and ther is no data to receive then the buffer is filled with spaces and returns. I have no way of knowing if it is valid or not. ... (1 Reply)
Hi I have a bit of c code which I'm trying to use as a relay between apache and a scgi cluster.
Example of problem code is below:
while((n = recv(scgiSock, local_data, MAX_LENGTH, 0)) > 0)
{
time(&t2);
time_now = t2 - t1;
if(time_now > TIMEOUT)
... (2 Replies)
Hi all,
I have installed Net::SMPP module in my system and i want to send SMS using SMPP account.
Please help me how to write the script for the same using Net::SMPP module. (0 Replies)
We are getting some special scenarios where Net::SMTP is not working for some mails.
we are sending a similar kind of data via mails but some of the mails are not received.
After checking the Net::SMTP in debug mode we found below difference:
Good One - (Mail sent properlly)
---
-----... (0 Replies)
SSHing into a machine can take a few seconds, but after I'm in, the commands return quickly. I was wondering if the timeout setting can be changed once I'm logged into the machine. Does anyone know if this can be set on the fly? The problem here is, if I have to set timeout = 10, it'll take 10... (1 Reply)
I have a TCPIP server application (a Vendor package) which by default allows 10 connections. It provides a parameter to allow us to increase the maximum allowable connections in case it is needed. Intermittently this application is failing with maximum number of connections reached even when there... (1 Reply)
I'm working with recv and I am having a heck of a lot of trouble ignoring excess data that I did not ask for. I was hoping someone could shine some light on the subject for me because I'm not getting anywhere fast.
---------- Post updated at 02:46 AM ---------- Previous update was at 12:31 AM... (2 Replies)
Hi, not sure if I should be posting this here but I am wondering if any of you have taken a good formal course in bash scripting on the Net and if so what it was? Free or paid. I am looking to expand my knowledge through courses and anything bash related would be great. (0 Replies)
Hi
I'm adding http 1.1 GET to my project and trying to use “Keep-Alive” HTTP connections to the host, The problem is when I recv() the first page, it succeeds. However, the 2nd consecutive recv() will receive zero bytes, for which I really have no idea. As per HTTP 1.1 I have Connection: ... (6 Replies)