I wrote a similiar IO Socket script by what you are describing. I used perl
and the IO::Socket module. It was pretty straight forward and their is
plenty of docs out there on that module.
Just a thought
Good Luck!
Daniel
- Original Message -
From: "René Fournier" <[EMAIL PROTECTED]
From: "René Fournier" <[EMAIL PROTECTED]>
> I need to write a little program that opens and maintains a TCP socket
> connection to a server across the Internet. This little program would
> wait for messages from the server it's connected to, then record those
> messages and send a kinda of acknowl
Since you don't need to put up a server, you can just use fsockopen. If I
recall correctly, passing the timeout argument as 0 means no timeout... If
you use the cli version of php, you can just enter `php -q myscript.php &` on
the command line (doubt this works w/ m$...). The ampersand tells the
3 matches
Mail list logo