Jay Blanchard wrote:

[snip]
Essentially, I'm looking to write something in the same vein as GNU httptunnel, but in PHP, and running on port 80 serverside. [/snip]

All of that was nice, but still does not explain what you are trying to
accomplish other than maintaining a connection state between client and
server.

What kind of process are you running that would require this? That is
what I am looking for. What is the real issue? What would you do that
would require a stated connection?
Tunelling arbitrary TCP packets. Similar idea to SSH port forwarding, except tunneling over HTTP instead of SSH. A good example might be encapsulating an IRC (or telnet, or pop3, or ssh, etc) connection inside of an HTTP connection such that incomming IRC traffic goes over a GET to the client, and outgoing IRC traffic goes over a POST request.

So, the traffic is bounced:

[mIRC] ---> [client.php] -----internet-----> [apache ---> server.php] -----internet-----> [irc server]

And the same in reverse. The connection between client.php and server.php is taking the IRC traffic and encapsulating it inside an HTTP connection, where it is unpacked by server.php before being sent on to the final destination. The idea is to get TCP tunneling working, once you do that you can rely on other programs to use that TCP tunnel for more complex things, like SOCKS.

Regards, Adam Zey.

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

Reply via email to