Q:I am sorry,socket buffer size of PPC?

Q:I am sorry,socket buffer size of PPC?

Post by henr » Sat, 09 Aug 2003 13:01:33


Hi,
I use recvfrom() to receive UDP packet on ppc,but always get the error code
10040,
it meaning:
The datagram is too large to fit into the receive buffer and therefore is
truncated.

But my receive buffer is 1024*4!

Why this happen,could someone help me!
Thanks!
 
 
 

1. Q:I am sorry,socket buffer size of PPC?

2. Determine the best buffer sizes when using socket.send() and socket.recv()

Hi,
I'd like to know if there's a way to determine which is the best
buffer size to use when you have to send() and recv() some data over
the network.
I have an FTP server application which, on data channel, uses 8192
bytes as buffer for both incoming and outgoing data.
Some time ago I received a report from a guy [1] who stated that
changing the buffers from 8192 to 4096 results in a drastical speed
improvement.
I tried to make some tests by using different buffer sizes, from 4 Kb
to 256 Kb, but I'm not sure which one to use as default in my
application since I noticed they can vary from different OSes.
Is there a recommended way to determine the best buffer size to use?

Thanks in advance

[1] http://www.yqcomputer.com/


--- Giampaolo
http://www.yqcomputer.com/

3. My I's are coming up i's. (lower case)

4. How to know the buffer size and increase buffer size in c++

5. Elimiating buffer size transferred from Apache over sockets

6. RAW socket: buffer size.

7. socket buffer size?

8. Socket problem caused by buffer size issues

9. Question about buffer size of RAW socket.

10. how to get remainning size of send buffer in unix sockets?

11. Maximum size of socket buffer

12. Buffer size when receiving data through a socket?

13. socket and receive buffer size

14. Help - questions on socket buffer size and TCP window

15. socket send buffer size