Game Development Community

Native TCP from TorqueScript?

by Rodney Rindels - Torqued · in Torque Game Builder · 05/01/2006 (5:01 pm) · 2 replies

Is is possible to use native torquescript to control tcp sockets? I really didn't get very far walking the tcpObject.cc file it looks pretty generic as far as socket connections and listeners. Really what I would like to do is hook a socket up to my linux server engine that doesn't use torque on the backend.



Thanks,
Rodney

#1
05/04/2006 (10:50 am)
TcpObject is not a "raw" tcp socket it is pretty much a text based one, so if you are using something along the lines of a Telnet connection, yes you would be fine to use TCPObject to make a connection to your linux server engine.

If you need to do binary level communication... then it probably isn't what you're looking for without modifications.
#2
05/04/2006 (10:46 pm)
Yeah I dont think I can get the performance I need using a text based socket. I guess I'll persue linking in my own version of a raw secure socket.