Re: [PHP-DEV] Full-duplex communication

2002-05-23 Thread Stig S. Bakken
On Thu, 2002-05-23 at 23:59, Stig S. Bakken wrote: > On Thu, 2002-05-23 at 14:39, Vinod Panicker wrote: > > Hi Faisal, > > > > Tx for ur thoughts... > > > > On Thu, 23 May 2002 Faisal Nasim wrote : > > >Hi, > > > > > >Why not simply use Apache to forward to the request to your PHP > > >script or

Re: [PHP-DEV] Full-duplex communication

2002-05-23 Thread Stig S. Bakken
On Thu, 2002-05-23 at 14:39, Vinod Panicker wrote: > Hi Faisal, > > Tx for ur thoughts... > > On Thu, 23 May 2002 Faisal Nasim wrote : > >Hi, > > > >Why not simply use Apache to forward to the request to your PHP > >script or 'other program' and deploy threads for whatever > >process > >you wan

Re: [PHP-DEV] Full-duplex communication

2002-05-23 Thread Stig S. Bakken
I suggest you take a look at BEEP, which is meant for "full-duplex" communication. HTTP simply isn't. http://www.alltheweb.com/search?q=beep+protocol - Stig On Wed, 2002-05-22 at 12:16, Vinod Panicker wrote: > Hi, > > I had a peculiar requirement. I need the ability to send > asynchronou

Re: Re: [PHP-DEV] Full-duplex communication

2002-05-23 Thread Vinod Panicker
Cool.. exactly the kind of info that i was looking for... Tx a lot, i'll check and get back to you Tx, Vinod. On Thu, 23 May 2002 Faisal Nasim wrote : >Vinod, >On Thu, 23 May 2002 Faisal Nasim >wrote : >Hi, >Why not simply use Apache to forward to the request to your PHP >script or 'other progr

Re: [PHP-DEV] Full-duplex communication

2002-05-23 Thread Vinod Panicker
Hi Faisal, Tx for ur thoughts... On Thu, 23 May 2002 Faisal Nasim wrote : >Hi, > >Why not simply use Apache to forward to the request to your PHP >script or 'other program' and deploy threads for whatever >process >you want to run in the background? I dont want to run anything else in the back

Re: [PHP-DEV] Full-duplex communication

2002-05-23 Thread Vinod Panicker
What i'm trying to leverage on is the socket that is left open. Since it is left open, i can write() to it, not from a php script necessarily, but another application. And since it is a custom client, i can have complete control over it. Developing a multi-threaded or listening server using

Re: Re: [PHP-DEV] Full-duplex communication

2002-05-23 Thread Dave Mertens
On Thu, May 23, 2002 at 09:56:22AM -, Vinod Panicker wrote: > But what i want is the socket which is used by Apache to send data > to the client, which is on a keep-alive connection, so that some > other program, or a php script can send data asynchronously to the > client. mind you, the

Re: Re: [PHP-DEV] Full-duplex communication

2002-05-23 Thread Vinod Panicker
Hi Dave, Thanks for the suggestion. But i really dont wanna go in for an infinite loop - just a hopeless waste of resources. I didnt say that a Keep-Alive connection would mean a Full-Duplex connection - i know how keep-alive works, as well as HTTP. I know HTTP is based on a request-respon

Re: [PHP-DEV] Full-duplex communication

2002-05-22 Thread Dave Mertens
On Wed, May 22, 2002 at 10:16:23AM -, Vinod Panicker wrote: > The client calls a script on the server - script_a.php using a > keep-alive connection. The script gets the socket from the web > server (this is the unknown), and stores it in a database. Script > finishes execution, client r

[PHP-DEV] Full-duplex communication

2002-05-22 Thread Vinod Panicker
Hi, I had a peculiar requirement. I need the ability to send asynchronous data from my web server to the client (COM component). I know that the first thing ppl will say is not to be using a web server, and to use a TCP solution. Thing is that the system is in a production environment and