Re: Keeping a socket open

From: Date: Mon, 27 Nov 2000 16:04:19 +0000
Subject: Re: Keeping a socket open
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-27391@lists.php.net to get a copy of this message
On Mon, 27 Nov 2000, Ovidiu EFTIMIE wrote: > Hi, > I have protocol between an application server (writen in Java) and a client > who can send a command(opening a socket) to the app server and then waits > for the answer. > Is there a way to read for example the first byte of the answer , verify > this byte and then read a specified lenght without closing the socket? > > Thanx, > Ovidiu > AFAIK, only two conditions will close a socket: 1) Closing it manually, and 2) Letting the script end. If neither of these happen, the socket will still be open. -- Ignacio Vazquez-Abrams <ignacio@openservices.net>

« previous php.general (#27391) next »