Mercurial > hg > RemoteEditor > REPSessionManager
view rep/ConnectToSessionManager.java @ 84:54334d83194a
*** empty log message ***
author | pin |
---|---|
date | Fri, 21 Dec 2007 16:03:04 +0900 |
parents | 91a33a634fef |
children |
line wrap: on
line source
package rep; import java.io.IOException; import java.net.InetSocketAddress; import java.nio.channels.SocketChannel; import rep.net.REPNet; import test.TestGUI; public class ConnectToSessionManager { private SocketChannel sc; private REPPacketReceive repreceive; private REPPacketSend repsend; private TestGUI gui; private REPNet rnet; public static void main(String[] args){ ConnectToSessionManager test = new ConnectToSessionManager(); test.sm_join("localhost"); } public void sm_join(String host){ rnet = new REPNet(); rnet.sm_connect(host, 8765); rnet.send(REPCommand.SMCMD_SESSION_JOIN); } }