[PHP] Socket help

2002-11-15 Thread Michael Hazelden
Hi all,

I need to set the KEEPALIVE value for a socket ... and just want to be
certain of what I'm seeing.

When I make my initial connection - the default value for the keepalive
seems to be 0 ... does this mean that no TCP keepalives will be sent on the
socket? Or am I doing something wrong?

Thanks for your help,

Michael.

This message has been checked for all known viruses by the MessageLabs Virus Control 
Centre.


*

Notice:  This email is confidential and may contain copyright material of Ocado 
Limited (the Company). Opinions and views expressed in this message may not 
necessarily reflect the opinions and views of the Company.
If you are not the intended recipient, please notify us immediately and delete all 
copies of this message. Please note that it is your responsibility to scan this 
message for viruses.

Company reg. no. 3875000.  Swallowdale Lane, Hemel Hempstead HP2 7PY

*

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




[PHP] Socket help

2001-09-25 Thread Stefano Baronio

Hello list,
I need to receive/send sms through an IPSec connection
using the socket (pfsocket) function of php.
I hope there's someone out there that can help me solving
some questions.

Here is what I thought to do:
REC_SCRIPT that open the socket connection and listen on
arriving messages (msg will be stored in mysql)
SEND_SCRIPT that is launched from a html form and use that
socket to send the message and store it in myslq.

Questions
1. Can the REC_SCRIPT stay alive listening on the persistent
socket connection ?
2. There's a way to launch it automagically when I start
apache ?
3. Can the SEND_SCRIPT use the socket conn. opened by the
first script ?
4. In case of receive/send in the same time, will all be ok
?

Thank you very much for any help

Stefano Baronio

[EMAIL PROTECTED]
www.sateltrack.com


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]