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

Username:   Password: 
 RegisterRegister   
 .net connection
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
djordje




PostPosted: Tue Sep 04, 2007 9:08 pm   Post subject: .net connection

Is it possible for turing to detect whether a person is connected to a server.

for example a client connects to a server made in turing and then quits the program. How would the server detect that the client is not connected so that it can close the connection and refresh it for other people to use?
Sponsor
Sponsor
Sponsor
sponsor
rdrake




PostPosted: Tue Sep 04, 2007 9:13 pm   Post subject: RE:.net connection

Usually done by pinging the client. If they don't return to the ping then you know the client is not there anymore.

At least that's how IRC does it.
d2bb




PostPosted: Tue Sep 04, 2007 11:31 pm   Post subject: RE:.net connection

have server send a command every 2-3 minets

eg :

Server to Client :

Server sends code telling the client to respond either with an answer of "1". if client does not respond to the Server, Server will close the connection to client.
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 1  [ 3 Posts ]
Jump to:   


Style:  
Search: