Blockland Forums > Modification Help
TCPObjects, how do they work?
Port:
--- Quote from: Wordy on June 10, 2012, 08:23:45 AM ---Right, I have gotten a succesful connection but I am trying to send something to the server. It sends but it does not operate like I need it to. Look here for example, it keeps saying this;
--- End quote ---
Are you trying to create a TCP server?
Wordy:
Yes.
Port:
http://forum.blockland.us/index.php?topic=105360.0
Lugnut:
--- Quote from: Rub on June 10, 2012, 08:04:48 AM ---It surprised me too!
http://joncraton.org/blog/46/netcat-for-windows
Even though it's pretty much identical I don't like how it works compared to NIX.
--- End quote ---
aw, not default :(
HEY WORDY, DON'T MAKE THE MISTAKE I DID.
SEE THAT CONNECTIONTCP THING?
YOU HAVE TO DO THIS:
ConnectionTCP::onLine(%this, %line)
YOU CANNOT DO THIS:
TCPServer::onLine(%this, %line)
stuff WILL START EXPLODING AND PORT WILL KILL YOU.
Wordy:
my brain exploded with confusion when i saw that code, i got it working though