For Those Who Know...
I know only a few of you know about what I'm posting. If you know about it, please enlighten me so I may have the knowledge, too. Please note I'm not asking for help on a script (though I may use it in the future), I just want to know how to explore all the capabilities of a TCPObject, and an HTTPObject.
First, the HTTPObject:
I have yet to test it's capabilities, however, I would still like to know if anyone out there knows how to work it's functions. I do know how to connect to online pages, though.
I saw, in the dump command, that it had a send(), a get(), and a post(). I'm pretty sure these were functions left in when Dynamix tried to implement the forum feature in tribes 2. I haven't tested them, though, I would certainly appreciate it if someone were point out that it requires this to be enabled first or maybe an example script.
Second, the TCPObject:
I've been trying quite a bit to explore this little surprise, however, it just refuses to work on me.
It has two functions which I really like the sound of: listen() and send(). I learned that listen is controlled by $Host::BindAddress, and, if you don't set that variable, it doesn't assign quite correctly (it just binds to the default port).
It uses ::onConnectFailed along with some other functions that are identical to the HTTPObject. I'm familiar with these, just not send() or listen().
If anyone can enlighten me on how these two wonders work, I'm willing to read what you have to say.
First, the HTTPObject:
I have yet to test it's capabilities, however, I would still like to know if anyone out there knows how to work it's functions. I do know how to connect to online pages, though.
I saw, in the dump command, that it had a send(), a get(), and a post(). I'm pretty sure these were functions left in when Dynamix tried to implement the forum feature in tribes 2. I haven't tested them, though, I would certainly appreciate it if someone were point out that it requires this to be enabled first or maybe an example script.
Second, the TCPObject:
I've been trying quite a bit to explore this little surprise, however, it just refuses to work on me.
It has two functions which I really like the sound of: listen() and send(). I learned that listen is controlled by $Host::BindAddress, and, if you don't set that variable, it doesn't assign quite correctly (it just binds to the default port).
It uses ::onConnectFailed along with some other functions that are identical to the HTTPObject. I'm familiar with these, just not send() or listen().
If anyone can enlighten me on how these two wonders work, I'm willing to read what you have to say.
Comments
it's for TGE but it's should still work.
Object.send( "GET /this/is/text.txt HTTP/1.0", "\x0a" );
Using get or post in conjunction with onLine and such you'd just use:
Object.get/post( %server, %filename, %args );
whats the fun in that?
Don't worry Thyth, we all still gaze upon your skills in awe.
Heh.. that was cool
Oh, yes and "bump."
Think it had something to do with Snowfire saying what he did above.