Mercurial > hg > RemoteEditor > Eclipse
view src/remoteeditor/network/REPPacketSend.java @ 206:563057fe244e
source code clean up
author | one |
---|---|
date | Sat, 18 Dec 2010 18:01:07 +0900 |
parents | cf4df4f73605 |
children |
line wrap: on
line source
package remoteeditor.network; import java.io.IOException; import java.nio.channels.SocketChannel; import rep.REPCommand; import rep.REPCommandPacker; public class REPPacketSend { SocketChannel socketchannel; REPCommandPacker p; public REPPacketSend(SocketChannel sc){ socketchannel = sc; } public void send(REPCommand command){ try { socketchannel.write(p.packUConv(command)); } catch (IOException e) { e.printStackTrace(); } } public SocketChannel getChannel() { return socketchannel; } }