Top "Recv" questions

BSD Sockets function used for receiving data from a TCP socket.

What does Python's socket.recv() return for non-blocking sockets if no data is received until a timeout occurs?

Basically, I've read in several places that socket.recv() will return whatever it can read, or an empty string signalling …

python sockets nonblocking recv
Python socket receive - incoming packets always have a different size

I'm using the SocketServer module for a TCP server. I'm experiencing some issue here with the recv() function, because the …

python networking timeout recv
How large should my recv buffer be when calling recv in the socket library

I have a few questions about the socket library in C. Here is a snippet of code I'll refer to …

c sockets buffer recv
Passing a structure through Sockets in C

I am trying to pass whole structure from client to server or vice-versa. Let us assume my structure as follows …

c sockets recv sendto
C socket: recv and send all data

I would like to obtain a behavior similar to this: Server run Client run Client type a command like "help" …

c sockets client-server send recv
Get the number of bytes available in socket by 'recv' with 'MSG_PEEK' in C++

C++ has the following function to receive bytes from socket, it can check for number of bytes available with the …

c sockets buffer recv peek
Python - converting sock.recv to string

I'm digging around with python and networking. while True: data = sock.recv(10240) This is definitely listening. But it seems to …

python struct python-3.x recv
Linux socket: How to make send() wait for recv()

I am making a simple client-server application using TCP protocal. I Know that by default. recv() will block until the …

c sockets send recv
Setting timeout to recv function

I read from socket using recv function. I have problem when no data available for reading. My programm just stops. …

c++ sockets visual-c++ recv
Sending multiple messages via send() recv(), Socket programming, C

I'm trying to make a program (client) which kan send a message to a server upon request from user. Stripped …

c sockets send recv