Side comment: you are missing the #lang line and requires, so
technically the code you have above is ambiguous.  Don't omit those
next time.

tcp-connect from another machine opens up a port, like the other
port-opening functions for files.  What issue are you encountering
with tcp-connect?  I would expect

    (tcp-connect <the-ip-address-of-your-server> 9999)

to produce input and output ports to communicate to the server.  Are
you not seeing this?
____________________
  Racket Users list:
  http://lists.racket-lang.org/users

Reply via email to