0

I built a little text-adventure game in ruby. It's a class and I initiate the class with the input text, and it prints the output to my terminal window. I wanted to make a telnet wrapper for this all, so I found Gserver, and built it so that you can send a command, and a makes a new game with the input. However, when it gets to calling the command, it drops the telnet session giving me "Connection closed by foreign host."

Not quite sure whats going wrong here. I hope someone can help me out. Does it have anything to do with timeouts? Preferably something easy ;)

Thanks in advance. -Patrick Gates

Patrick Gates
  • 391
  • 6
  • 18
  • Are you running the telnet server on the same computer as the game client? Also, which operating system are you running? – Jeff Terrell Ph.D. Jun 10 '11 at 14:17
  • I'm running telnet on my macintosh (Macbook Pro, running Mac os 10.6) to connect to the server which is on a Debian Lenny server running apache. – Patrick Gates Jun 10 '11 at 19:45

1 Answers1

0

AHA! Figure it out. An error in my class was closing the connection, but for some reason it was being caught, so I specifically told it to catch all errors, and was able to solve the issue. Thanks everyone.

Patrick Gates
  • 391
  • 6
  • 18