Hi I am working on creating a java netrek observer. I am able to connect to the server by opening a socket from the applet using the following code:
void loadRecording() {
...
try {
InputStream ins;
/* jsc */
stat.setText("Waiting for packet data...");
redraw();
if ( is_socket == true ) {
/* recording is a server name */
// thus open the observer socket and start collecting packets
String SERVER_HOST_IP = "192.1.1.128";
java.net.SocketPermission p1 = new SocketPermission(SERVER_HOST_IP+":2593", "connect,accept");
Socket s = new Socket(SERVER_HOST_IP, 2593);
ins = s.getInputStream();
} else {
... }
...}
At this point the socket is open and the input stream has been returned. What client/server, server/client communications needs to happen to get the client authenticated and such? Which vanilla server source code should i investigate ?
Thanks,
-Jay
--
__________________________________________________________
Sign-up for your own FREE Personalized E-mail at Mail.com
http://www.mail.com/?sr=signup
_______________________________________________
vanilla-list mailing list
vanilla-list at us.netrek.org
https://mailman.real-time.com/mailman/listinfo/vanilla-list