Re: Re: Socket help
| From: | Stefano Baronio | Date: | Wed, 26 Sep 2001 12:30:51 +0000 |
| Subject: | Re: Re: Socket help | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-68842@lists.php.net to get a copy of this message | ||
Chris Lee wrote:
> your server has to open a connection to a remote
> host to see if there are
> messages ? like email ?
yes. It is a sort of ftp-like protocol.
> if this is so then use
> cron once every so often to
> check if there are new messages.
I'll receive/send a lot of messages and this solution could
not be efficient. But it is a possible way to do that,
thanks, I didn't thought at it.
> if the remote
> host makes a connection to
> your server the use tcp_wrappers to call your php script.
It's my server that make the connection.
> the second script can NOT use the first apps
> socket, sockets arent shared
> like that.
Could I set up a script that handle the connection and take
the message data from another script (launched by a html
form )?
> yes, sending and recienveing should be ok, any
> data backed up will just be
> stored in buffers.
ok thanks
> --
>
> Chris Lee
> lee@mediawaveonline.com
Thanks for your help.
Stefano Baronio