Sockets.recv(3kaya) Kaya module reference Sockets.recv(3kaya)NAME
Sockets::recv - Receive text data from a socket
SYNOPSIS
String recv( Socket s, Int maxlen=-1, Int timeout=1000000 )
ARGUMENTS
s The socket
maxlen The maximum number of bytes to receive. This must be a positive integer (the default is 1024), or -1 for no limit. 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 time to wait for data in microseconds before giving up (the default is 1000000, or 1 second). -1 can be used to wait until data
arrives.
DESCRIPTION
Receive text data from a socket.
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 Sockets.Socket(3kaya)Sockets.pending(3kaya)Sockets.send(3kaya)Sockets.recvByte(3kaya)Sockets.recvBytes(3kaya)Kaya October 2012 Sockets.recv(3kaya)
Check Out this Related Man Page
Sockets.recvBytes(3kaya) Kaya module reference Sockets.recvBytes(3kaya)NAME
Sockets::recvBytes - Receive binary data from a socket
SYNOPSIS
Binary recvBytes( Socket s, Int maxlen=1024, Int timeout=1000000 )
ARGUMENTS
s The socket
maxlen The maximum number of bytes to receive. This must be a positive integer (the default is 1024)
timeout The time to wait for data in microseconds before giving up (the default is 1000000, or 1 second)
DESCRIPTION
Receive binary data from a socket.
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 Binary.Binary(3kaya)Sockets.Socket(3kaya)Sockets.pending(3kaya)Sockets.sendBytes(3kaya)Sockets.recv(3kaya)Sockets.recvByte(3kaya)Kaya October 2012 Sockets.recvBytes(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 am trying to develop a simple program that uses Sockets. I have a windows machine and MUST use C++. I found out that I can use C's Socket (#include <sys/socket.h>) API calls, but this is only possible on a unix machine. So I installed Cygwin to imitate a unix environment on my windows... (4 Replies)
Hi,
My name is Daniel and I'm spanish, so I'm sorry if you can't undertand something becouse of my low-level english.
Something stranger is happening to me with socket++ library and I don't know how to work on it.
I has a library called commands.so and the sslclient is and object of that... (4 Replies)
Hi everybody!!
I'm studding at the university raw sockets, but i can't find a good place to read about them...
Does anybody now where i can find some information???
I've been goggling a lot but couldn't find nothing useful, just man pages...
by the way, I'm programming under Linux...
Bye! (4 Replies)
I have created two sockets and binded both. My requirement is that 2nd socket must send/ recv data only on expiration of timeval(tv). but the 1st socket must keep on send/recv the data without waiting for the 2nd socket completion......
I have posted my code below......
In this code the 2nd... (3 Replies)
Hi all,
We are receiving huge number of "Receive Errors" on our database server on AIX. Any pointers to troubleshoot would be really appreciated.
oslevel:
AIX 5.3.0.0
ifconfig -a
en6: flags=4e080863,c0<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST,GROUPRT,64BIT,PSEG,LARGESEND,CHAIN>
... (3 Replies)
hai guys,
I'm doing a project in which one server communicates with several clients. How can i do it when i have different port numbers???:confused: (0 Replies)
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)
If you receive data from a remote host you might like this. I just used it to find out what data the recv function terminates strings with.
void dump(const unsigned char *data_buffer, const unsigned int length)
{
unsigned char byte;
unsigned int i, j;
for(i=0; i < length; i++)... (9 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)