Skip to main content
GameDev.net gamedev.net
🔒 Locked

[java] Servers........

Started by SPAR Sep 14, 2000 at 11:25 PM 2 replies 600+ views
Original Post
SPAR
SPAR
I am wondering how to keep a server application running 24 hours a day, so that it is always available to a game. I understand how to operate the client and server once the server is listening to a port, but my question is how to you remotely invoke the server application to start running so that you may connect to it with a client application? thanks SPAR1
felonius
felonius
The standard way of does this is the have the server listening at some standard port all the time.

When a client connect through this port they use that connection to agree on some other session specific port, disconnect and then reconnect again at the new port - using a new thread to listen at the new port.

You cannot "invoke" a not running server program.

Jacob Marner
Jacob Marner, M.Sc.Console Programmer, Deadline Games
SPAR
SPAR
Thanks, unfortunately that''s what I thought.

If I find a way to do it I will let everyone know then.

l8er
Jim_Ross
Jim_Ross
normally, when a server program is run it doesn''t stop until explicitly instructed to stop. So, once the server program is running it should run until the computer loses power.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.