Mercurial > hg > RemoteEditor > REPSessionManager
comparison rep/SessionManagerList.java @ 31:593f915dd6ff JOINandPUT
for JOIN and PUT Testing
author | pin |
---|---|
date | Sat, 10 Nov 2007 12:52:24 +0900 |
parents | 2b4863af8804 |
children | de8638eb0edd |
comparison
equal
deleted
inserted
replaced
30:e67b1cec9dbe | 31:593f915dd6ff |
---|---|
45 | 45 |
46 public void setMaster(SocketChannel channel){ | 46 public void setMaster(SocketChannel channel){ |
47 this.master = channel; | 47 this.master = channel; |
48 } | 48 } |
49 | 49 |
50 public void sendSessionList(SessionList sessionlist, REPCommand command) { | |
51 command.setCMD(REP.SMCMD_SM_JOIN_ACK); | |
52 | |
53 for(SocketChannel channel : list){ | |
54 REPPacketSend send = new REPPacketSend(channel); | |
55 send.send(command); | |
56 } | |
57 } | |
58 | |
50 } | 59 } |