send/recv socket calls
From: DJP (dominicjoseph_at_rediffmail.com)
Date: 10/01/04
- Next message: DJP: "send/recv socket calls"
- Previous message: sobo: "Re: Stallion"
- Next in thread: Doug Smith: "Re: send/recv socket calls"
- Reply: Doug Smith: "Re: send/recv socket calls"
- Reply: Rick Jones: "Re: send/recv socket calls"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 1 Oct 2004 02:13:08 -0700
Hi,
I was just trying to understand the send/recv socket calls. Does a send call
block if the receiver hasn't executed a recv for the number of bytes that a
sender is sending? For example if A sends 50 bytes to B and the code in B
just does a recv for 10, what exactly is going to happen? (I am using TCP
SOCK_STREAM) Does A just pretend that all the byes were sent or does it
block until the receiver receives all the bytes.
I am basically trying to get at the logic that I should be building into my
receiver. If I do not know how much data I am going to receive. What is the
logic I should use at the receiver in determining how many bytes to recv or
read from the byte stream?
I hope someone can help me with this. Thanks a lot!
- Next message: DJP: "send/recv socket calls"
- Previous message: sobo: "Re: Stallion"
- Next in thread: Doug Smith: "Re: send/recv socket calls"
- Reply: Doug Smith: "Re: send/recv socket calls"
- Reply: Rick Jones: "Re: send/recv socket calls"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|