Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Internet
Index -> Programming, Turing -> Turing Help
Goto page 1, 2  Next
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
eggplant_burger




PostPosted: 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
Sponsor
Sponsor
Sponsor
sponsor
PaddyLong




PostPosted: Wed Jul 02, 2003 8:22 am   Post subject: (No 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
eggplant_burger




PostPosted: Wed Jul 02, 2003 2:04 pm   Post subject: (No subject)

hmmmmm, Net module.

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




PostPosted: Wed Jul 02, 2003 2:59 pm   Post subject: (No 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.
Tony




PostPosted: Wed Jul 02, 2003 3:26 pm   Post subject: (No 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.
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
eggplant_burger




PostPosted: Wed Jul 02, 2003 3:37 pm   Post subject: (No 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??
SilverSprite




PostPosted: Wed Jul 02, 2003 4:10 pm   Post subject: (No subject)

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




PostPosted: Wed Jul 02, 2003 4:14 pm   Post subject: (No 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
Tony




PostPosted: Wed Jul 02, 2003 4:23 pm   Post subject: (No 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
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Asok




PostPosted: Wed Jul 02, 2003 5:01 pm   Post subject: (No 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.
Andy




PostPosted: Wed Jul 02, 2003 5:18 pm   Post subject: (No 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
eggplant_burger




PostPosted: Wed Jul 02, 2003 11:32 pm   Post subject: (No 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??
Tony




PostPosted: Thu Jul 03, 2003 12:14 am   Post subject: (No subject)

no, since turing would not allow you to load DLLs, so there's no way of writing a custom function(s) elsewhere Confused
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
eggplant_burger




PostPosted: Thu Jul 03, 2003 12:21 am   Post subject: (No subject)

That's bullshit



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




PostPosted: Thu Jul 03, 2003 1:48 am   Post subject: (No 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
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 2  [ 17 Posts ]
Goto page 1, 2  Next
Jump to:   


Style:  
Search: