Author Topic: How do I use TCPObject's SEND command?  (Read 859 times)

Okay, so i'm making an add-on, and I want to explore more of torquescript, so i've set up a basic TCPObject. It connects to raw.githubusercontent.com:443/ClayHanson/Blockland/master/Update. I was wondering if anyone could explain to me how to use the send(); command (what parameters do i use and what do they do), and how to set up the page it connects to in order to receive data from said page.

This post explains how to properly host things on Github for Blockland: http://forum.blockland.us/index.php?topic=255382.msg8351773#msg8351773

For the TCP connection, this should be a good learning resource: http://greek2me.us/code/Support_TCPClient.cs
You could also just use it if you don't care about learning how to do it.

and how to set up the page it connects to in order to receive data from said page.
Only answering this party as Greek answered the rest for now

There is no difference in how the page is set up. Technically you don't "connect to" the page, you connect to the webserver, which delivers the page. The webserver doesn't care who is connecting, or how they're connecting (unless your configure it otherwise) as long as the request is valid, which Greek's resource will help your with.

Additionally, your URL suggests you're trying to make an auto updater. if this is the case, just use the existing one. It's pretty much, and the less add-ons that do the same thing that the user has to deal with, the better.

This post explains how to properly host things on Github for Blockland: http://forum.blockland.us/index.php?topic=255382.msg8351773#msg8351773

For the TCP connection, this should be a good learning resource: http://greek2me.us/code/Support_TCPClient.cs
You could also just use it if you don't care about learning how to do it.
Only answering this party as Greek answered the rest for now

There is no difference in how the page is set up. Technically you don't "connect to" the page, you connect to the webserver, which delivers the page. The webserver doesn't care who is connecting, or how they're connecting (unless your configure it otherwise) as long as the request is valid, which Greek's resource will help your with.

Additionally, your URL suggests you're trying to make an auto updater. if this is the case, just use the existing one. It's pretty much, and the less add-ons that do the same thing that the user has to deal with, the better.

okay wait
how the forget do i add a zip file to my repository (github)
« Last Edit: May 21, 2015, 05:59:04 PM by RTBARCHIVE »

Additionally, your URL suggests you're trying to make an auto updater. if this is the case, just use the existing one. It's pretty much, and the less add-ons that do the same thing that the user has to deal with, the better.

If you go this route (which I'd recommend), here's the documentation and stuff for it: http://forum.blockland.us/index.php?topic=255382.0

okay wait
how the forget do i add a zip file to my repository (github)



Just like any other file. If it's for users to download, though, put it in the gh-pages repo.

Just like any other file. If it's for users to download, though, put it in the gh-pages repo.
No, I mean upload my zip file

Okay, so i'm making an add-on, and I want to explore more of torquescript, so i've set up a basic TCPObject. It connects to raw.githubusercontent.com:443/ClayHanson/Blockland/master/Update. I was wondering if anyone could explain to me how to use the send(); command (what parameters do i use and what do they do), and how to set up the page it connects to in order to receive data from said page.
You cannot download this info with torkscript as it does not support https.

No, I mean upload my zip file

Place it in the git repository called "gh-pages", add it, commit it, and push it. It's just like how you added the other files to your repositories.