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

2008-11-14 Thread Giampaolo Rodola'
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

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

2008-11-14 Thread Greg Copeland
On Nov 14, 9:56 am, Giampaolo Rodola' [EMAIL PROTECTED] wrote: 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

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

2008-11-14 Thread Giampaolo Rodola'
On Nov 14, 5:27 pm, Greg Copeland [EMAIL PROTECTED] wrote: On Nov 14, 9:56 am, Giampaolo Rodola' [EMAIL PROTECTED] wrote: 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

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

2008-11-14 Thread Greg Copeland
On Nov 14, 1:58 pm, Giampaolo Rodola' [EMAIL PROTECTED] wrote: On Nov 14, 5:27 pm, Greg Copeland [EMAIL PROTECTED] wrote: On Nov 14, 9:56 am, Giampaolo Rodola' [EMAIL PROTECTED] wrote: Hi, I'd like to know if there's a way to determine which is the best buffer size to use when you