Hey everyone,
New to the forums here. So a little background on what I am trying to do. I am in a group of two in my software design class and the assignment is Wink murder. My partner and I decided to go with a client/server set up to handle the 5-7 player minimum. Figured peer to peer gets to ugly after about three people. So I am writing the server. But I decided I am gonna write two servers. The game server and the master server that keeps a running total of all publicly available servers. So a client starts up, goes to the master server first and requests a list of all servers that have openings. I find it pointless to send a server that is full. Then that client picks a server and goes off to play. That's all I need to know about the client. But the game server is handling two different types of connections. The client connections and the master server connection. The master server, in order to keep its list up to date, will poll all servers in its list of known servers to verify they are still running. If not they are removed. I am having some trouble with the polling part. I send the string "POLL" to the server using a PrintStream and nothing happens. The server has a class to handle this one thing and I have some debug code in there to verify things are working but nothing ever pops up. Any suggestions? Also on a side note, the master server's server manager sleeps its thread for a second after all servers have been polled.
Thanks