Ok… me and my friends are coding a rpg in java… we were going to use vb but we quickly decided not to… i understand the whole socket concept etc…
Well, basically my program goes as follows… upon running it creates a server listening on port X then on the main thread it listens for clients to connect (server.accept();)… when it picks up a client it then instanciates a new object called clientHandler which contains a thread to listen to client requests… now to write a msg to all the clients connected any incoming msg gets sent to the method writeAll(String s) in the main program which inturn calls write of each clienthandler… Any input?.. suggestions?
Also, i wrote those programs and classes yet.. the server is one message behind.. now im using streams and the basic java.net.ServerSocket and java.net.Socket .. and for the handling of the streams PrintWriter and BufferedReader ... i could use some clarification of what .flush() does and .reset() .. Thanks all
Oryan