Persistant Socket Across Different Scripts

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I am trying to figure out if there is a way to have a socket persist
in different executions of the same script.  My situation is as
follows;  I have a Java program running and waiting for connections on
port 10000.  When it receives a connection it reads a "device" id and
loads a device driver for it and then passes the stream to this
driver.

  I would like to be able to communicate over this stream with the
client using a browser and PHP.  I can open the stream when the script
runs for the first time, but each time the user gets the script again
the connection is being re-made.  I tried pfsockopen but it seemed to
work the same of fsockopen.

Thanks very much,
Justin

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux