annotate rep/ConnectToSessionManager.java @ 84:54334d83194a

*** empty log message ***
author pin
date Fri, 21 Dec 2007 16:03:04 +0900
parents 91a33a634fef
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
5
91a33a634fef *** empty log message ***
pin
parents:
diff changeset
1 package rep;
91a33a634fef *** empty log message ***
pin
parents:
diff changeset
2
91a33a634fef *** empty log message ***
pin
parents:
diff changeset
3 import java.io.IOException;
91a33a634fef *** empty log message ***
pin
parents:
diff changeset
4 import java.net.InetSocketAddress;
91a33a634fef *** empty log message ***
pin
parents:
diff changeset
5 import java.nio.channels.SocketChannel;
91a33a634fef *** empty log message ***
pin
parents:
diff changeset
6
91a33a634fef *** empty log message ***
pin
parents:
diff changeset
7 import rep.net.REPNet;
91a33a634fef *** empty log message ***
pin
parents:
diff changeset
8 import test.TestGUI;
91a33a634fef *** empty log message ***
pin
parents:
diff changeset
9
91a33a634fef *** empty log message ***
pin
parents:
diff changeset
10 public class ConnectToSessionManager {
91a33a634fef *** empty log message ***
pin
parents:
diff changeset
11 private SocketChannel sc;
91a33a634fef *** empty log message ***
pin
parents:
diff changeset
12 private REPPacketReceive repreceive;
91a33a634fef *** empty log message ***
pin
parents:
diff changeset
13 private REPPacketSend repsend;
91a33a634fef *** empty log message ***
pin
parents:
diff changeset
14 private TestGUI gui;
91a33a634fef *** empty log message ***
pin
parents:
diff changeset
15 private REPNet rnet;
91a33a634fef *** empty log message ***
pin
parents:
diff changeset
16
91a33a634fef *** empty log message ***
pin
parents:
diff changeset
17 public static void main(String[] args){
91a33a634fef *** empty log message ***
pin
parents:
diff changeset
18 ConnectToSessionManager test = new ConnectToSessionManager();
91a33a634fef *** empty log message ***
pin
parents:
diff changeset
19 test.sm_join("localhost");
91a33a634fef *** empty log message ***
pin
parents:
diff changeset
20 }
91a33a634fef *** empty log message ***
pin
parents:
diff changeset
21
91a33a634fef *** empty log message ***
pin
parents:
diff changeset
22 public void sm_join(String host){
91a33a634fef *** empty log message ***
pin
parents:
diff changeset
23 rnet = new REPNet();
91a33a634fef *** empty log message ***
pin
parents:
diff changeset
24 rnet.sm_connect(host, 8765);
91a33a634fef *** empty log message ***
pin
parents:
diff changeset
25 rnet.send(REPCommand.SMCMD_SESSION_JOIN);
91a33a634fef *** empty log message ***
pin
parents:
diff changeset
26 }
91a33a634fef *** empty log message ***
pin
parents:
diff changeset
27
91a33a634fef *** empty log message ***
pin
parents:
diff changeset
28 }