Mercurial > hg > Members > tatsuki > Alice
view src/alice/daemon/Connection.java @ 23:54bf607118ae
change method to create RemoteDSM
author | kazz <kazz@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 17 Jan 2012 01:10:29 +0900 |
parents | e3f1b21718b0 |
children | 3155337e754e |
line wrap: on
line source
package alice.daemon; import java.net.Socket; import java.util.concurrent.LinkedBlockingQueue; import alice.datasegment.Command; public class Connection { public Socket socket; public LinkedBlockingQueue<Command> sendQueue = new LinkedBlockingQueue<Command>(); public Connection(Socket socket) { this.socket = socket; } public Connection() { } public void sendCommand(Command cmd) { try { sendQueue.put(cmd); } catch (InterruptedException e) { e.printStackTrace(); } } }