Computer Science Canada

Internet

Author:  eggplant_burger [ Wed Jul 02, 2003 3:04 am ]
Post subject:  Internet

I have always wondered if Turing (preferably 3.1, that's the one I like to use) supports TCP/IP or LAN multiplayer.

If it does, can someone please direct me to a module or something I can check out in the reference??

PS:I like swords

Author:  PaddyLong [ Wed Jul 02, 2003 8:22 am ]
Post subject: 

the Net module is what you're after... but I'm not sure if it's in 3.1 ... I think it might be, but there is no documentation for it in 3.1

Author:  eggplant_burger [ Wed Jul 02, 2003 2:04 pm ]
Post subject: 

hmmmmm, Net module.

Well, if there's no documentation for it, can you give a list of commands available in it??

Author:  PaddyLong [ Wed Jul 02, 2003 2:59 pm ]
Post subject: 

WaitForConnection Waits until a client connects to a specified port.
OpenConnection Opens a connection to a specified machine.
OpenURLConnection Opens a connection to a file specified by a URL.
CloseConnection Closes a specified connection.
BytesAvailable Returns the number of bytes available to be read from a net stream.
CharAvailable Returns true if there is a character available to be read from a net stream.
LineAvailable Returns true if there is a line of text available to be read from a net stream.
TokenAvailable Returns true if there is a token available to be read from a net stream.
HostAddressFromName Returns a host's address given its host name.
HostNameFromAddress Returns a host's name given its address.
LocalAddress Returns the host name of the local machine.
LocalName Returns the TCP/IP address of the local machine.

Author:  Tony [ Wed Jul 02, 2003 3:26 pm ]
Post subject: 

Net module is documented with GUI on holtsoft's site...

Dont expect to have a real-time game over the network though... Net commands will be able to transfer data like scores or whatnot, but it is too slow to play a real-time game (I've tried that with Darkness already).

You could make a chat program though, we already have atleast one submited (with source code I belive), so go check it out.

Author:  eggplant_burger [ Wed Jul 02, 2003 3:37 pm ]
Post subject: 

So the Net module is useless for actual multiplayer gaming... great. But what if it's a turn-based game??

and, uh, I got lost at the holtsoft site. Embarassed Can you please direct me to the section on Net??

Author:  SilverSprite [ Wed Jul 02, 2003 4:10 pm ]
Post subject: 

yeah it works fine with turn-based games...

Author:  Catalyst [ Wed Jul 02, 2003 4:14 pm ]
Post subject: 

the speed isnt too bad (by turing's standards) but it is prone to glitches
i once wrote a whiteboard program, and it would constantly draw in random places and in random colors

Author:  Tony [ Wed Jul 02, 2003 4:23 pm ]
Post subject: 

documentation is located at http://www.holtsoft.com/turing/tech/GUIOver.pdf

scroll pass all of GUI stuff...

and yeah, Net module is screwed up... not only is it slow, its also very unreliable and was known to cut out parts of incomming data Confused

Author:  Asok [ Wed Jul 02, 2003 5:01 pm ]
Post subject: 

If you're going to work with the Net stuff in Turing, be aware it's SLOW!!!

Me and JSBN were making an MMO in Turing but it's too slow to support it.

Author:  Andy [ Wed Jul 02, 2003 5:18 pm ]
Post subject: 

dun even expect file transfer, turing tend to loose a couple of lines on its own. plus sometimes if u paste some stuff, extra lines gets pastes with it... weird

Author:  eggplant_burger [ Wed Jul 02, 2003 11:32 pm ]
Post subject: 

Well, since you all seem to be saying that Net is a piece of crap, does anyone have a home-grown module/class for internet use??

Author:  Tony [ Thu Jul 03, 2003 12:14 am ]
Post subject: 

no, since turing would not allow you to load DLLs, so there's no way of writing a custom function(s) elsewhere Confused

Author:  eggplant_burger [ Thu Jul 03, 2003 12:21 am ]
Post subject: 

That's bullshit



..... Am I allowed to say that??

Author:  Asok [ Thu Jul 03, 2003 1:48 am ]
Post subject: 

no.

*arrests eggplant_burger for foul language*

NOTE: You can swear provided it's not directed at anyone so it's not offensive. Same rules that apply to daytime TV apply here generally. Just remember, I'm Neo, some of these rules can be bent, others can be broken. Laughing

Author:  eggplant_burger [ Thu Jul 03, 2003 2:31 am ]
Post subject: 

I didn't know Neo was a drunken panda

Well, I gues we learn something new every day

Author:  Andy [ Thu Jul 03, 2003 9:48 am ]
Post subject: 

lol neo idolizes him juss like the rest of us here...


: