[DeleGate-En] Can Delegate do this?
A colleague of mine wrote a program in python to do what I need. Here's
the script. Sorry for the noise.
# Echo server program
HOST = 'somehost' # The remote host
s1 = telnetlib.Telnet(HOST, someport)
HOST = '' # Symbolic name meaning the local host
PORT = somelistenport # Arbitrary non-privileged port
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
conn, addr = s.accept()
print 'Connected by', addr
data = conn.recv(1024)
if not data: break
data = ""
data2 = s1.read_very_eager()
-- REPLYING TO THE FOLLOWING MESSAGE --
From: Commander Smutticus <firstname.lastname@example.org>
Date: 08 Jul 2003 10:55:12 GMT
Is it possible for me to use Delegate to manage the state of a TCP
I want to use PHP to poll a telnet connection. My PHP script would post
data to delegated and get a response from telnetd. This could be
over TCP or HTTP/TCP. The socket between telnetd and delegated would be
a normal TCP socket. While the socket between PHPscript and delegated
could only be initiated by PHPscript and would always consist of the
following series similar to HTTP 1.0:
1. Setup by PHPscript
2. Post from PHPscript
3. Response from delegated
I'm planning on writing a VoiceXML interface in PHP to some popular Multi
User Dungeons(MUDs) on the internet. I wrote a prototype many months
ago that used www.phpzork.com as the MUD. But that site has been down for
a long time now and I can't find any other stateless MUD's.