Author Topic: TCPObjects, how do they work?  (Read 2062 times)

I have recently seen many new TCPObject scripts which people who I am in contact with are capable of doing. But as they are capable of doing these scripts and I am the odd one who is unable to script such a thing, I am asking you guys on the forum to give me some basic advice.

How would I be able to make a TCPObject server in which a client can send information to the server? (The server is within Blockland and so is the client)

How would I be able to retrieve information from a website?

Is there any good examples of TCPObjects in certain scripts which I could take a look at?

Thanks.


First you'll want to learn about sockets and networking.

Would you be able to give me some information upon that?


Okay, so I've read through all that and I get the point, basically.

Now to use TQE to set up a TCP connection.

What functions are at my disposal?

Try this:

new TCPObject( dummy ).dump();
dummy.delete();

i see:o

now to have a go yay

Despite how sketchy this site looks, if you need a TCP end point (client or server) to test your TCP objects with, this is a fantastic utility:

http://www.socketworkbench.com/

doesnt work on windows 8 lol

i seriously need to go back to windows 7 omg

Despite how sketchy this site looks, if you need a TCP end point (client or server) to test your TCP objects with, this is a fantastic utility:

http://www.socketworkbench.com/
Could one not use telnet or netcat for a client?

Could one not use telnet or netcat for a client?
Sure, but the Windows netcat utility is stuff imo and it's nice to have a GUI sometimes.

Despite how sketchy this site looks, if you need a TCP end point (client or server) to test your TCP objects with, this is a fantastic utility:

http://www.socketworkbench.com/

Can this be used for purposes other than testing, if so, are we required to port forward?

Sure, but the Windows netcat utility is stuff imo and it's nice to have a GUI sometimes.
lol, didn't know windows had netcat, thought that was a 'nix thing.

not clear what the difference between terminal and a gui when it comes to this is...

Can this be used for purposes other than testing, if so, are we required to port forward?
probably
yes

lol, didn't know windows had netcat, thought that was a 'nix thing.
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.

Can this be used for purposes other than testing, if so, are we required to port forward?
In theory, yes but you have to manually send data, you couldn't really use it as a permanent TCP endpoint. If you want external connections, yes, you'd have to port forward.

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;