Mercurial > hg > RemoteEditor > REPSessionManager
annotate test/ConnectToSessionManager.java @ 143:785a3e8ea858
*** empty log message ***
author | kent |
---|---|
date | Wed, 27 Aug 2008 22:48:10 +0900 |
parents | 291c62984ba0 |
children |
rev | line source |
---|---|
126 | 1 package test; |
2 | |
3 import rep.REPCommand; | |
4 import rep.net.REPNet; | |
5 | |
6 public class ConnectToSessionManager { | |
7 private REPNet rnet; | |
8 | |
9 public static void main(String[] args){ | |
10 ConnectToSessionManager test = new ConnectToSessionManager(); | |
11 test.sm_join("localhost"); | |
12 } | |
13 | |
14 public void sm_join(String host){ | |
15 rnet = new REPNet(); | |
16 rnet.sm_connect(host, 8765); | |
17 rnet.send(REPCommand.SMCMD_SESSION_JOIN); | |
18 } | |
19 | |
20 } |