Re: [PHP] Sockets (reading)

2009-08-27 Thread Martin Scotta
On Wed, Aug 26, 2009 at 5:36 PM, Philip Thompson wrote: > On Aug 26, 2009, at 2:47 PM, Bob McConnell wrote: > > From: Philip Thompson >> >>> On Aug 26, 2009, at 11:56 AM, Bob McConnell wrote: >>> From: Philip Thompson > > During a socket read, why would all the requested number

Re: [PHP] Sockets (reading)

2009-08-26 Thread Philip Thompson
On Aug 26, 2009, at 2:47 PM, Bob McConnell wrote: From: Philip Thompson On Aug 26, 2009, at 11:56 AM, Bob McConnell wrote: From: Philip Thompson During a socket read, why would all the requested number of bytes not get sent? For example, I request 1000 bytes: This is actually in a loop,

RE: [PHP] Sockets (reading)

2009-08-26 Thread Bob McConnell
From: Philip Thompson > On Aug 26, 2009, at 11:56 AM, Bob McConnell wrote: >> From: Philip Thompson >>> >>> During a socket read, why would all the requested number of bytes not >>> get sent? For example, I request 1000 bytes: >>> >>> >> $data = @socket_read ($socket, 2048, PHP_BINARY_READ); >>> ?>

RE: [PHP] Sockets (reading)

2009-08-26 Thread Bob McConnell
From: Shawn McKenzie > Bob McConnell wrote: >> From: Philip Thompson >>> During a socket read, why would all the requested number of bytes not >> >>> get sent? For example, I request 1000 bytes: >>> >>> >> $data = @socket_read ($socket, 2048, PHP_BINARY_READ); >>> ?> >>> >>> This is actually in a

Re: [PHP] Sockets (reading)

2009-08-26 Thread Shawn McKenzie
Bob McConnell wrote: > From: Philip Thompson >> During a socket read, why would all the requested number of bytes not > >> get sent? For example, I request 1000 bytes: >> >> > $data = @socket_read ($socket, 2048, PHP_BINARY_READ); >> ?> >> >> This is actually in a loop, so I can get all the data i

Re: [PHP] Sockets (reading)

2009-08-26 Thread Philip Thompson
On Aug 26, 2009, at 11:56 AM, Bob McConnell wrote: From: Philip Thompson During a socket read, why would all the requested number of bytes not get sent? For example, I request 1000 bytes: This is actually in a loop, so I can get all the data if split up. So, for example, here's how the d

RE: [PHP] Sockets (reading)

2009-08-26 Thread Bob McConnell
From: Philip Thompson > > During a socket read, why would all the requested number of bytes not > get sent? For example, I request 1000 bytes: > > $data = @socket_read ($socket, 2048, PHP_BINARY_READ); > ?> > > This is actually in a loop, so I can get all the data if split up. So, > for examp

Re: [PHP] Sockets (reading)

2009-08-26 Thread Jim Lucas
Philip Thompson wrote: > Hi. > > During a socket read, why would all the requested number of bytes not > get sent? For example, I request 1000 bytes: > > $data = @socket_read ($socket, 2048, PHP_BINARY_READ); > ?> > > This is actually in a loop, so I can get all the data if split up. So, > for

[PHP] Sockets (reading)

2009-08-26 Thread Philip Thompson
Hi. During a socket read, why would all the requested number of bytes not get sent? For example, I request 1000 bytes: This is actually in a loop, so I can get all the data if split up. So, for example, here's how the data split up in 3 iterations (for 1000 bytes): 650 bytes 200 bytes