Mercurial > hg > RemoteEditor > REPSessionManager
comparison rep/SessionManagerList.java @ 401:2cf5392b2a9f
add INSERT_USER, DELETE_USER
JOIN_ACK fix
author | one |
---|---|
date | Tue, 25 Nov 2008 03:07:05 +0900 |
parents | 6f356d160e58 |
children | 795ef563f2a0 |
comparison
equal
deleted
inserted
replaced
400:29f01a7ce71f | 401:2cf5392b2a9f |
---|---|
1 package rep; | 1 package rep; |
2 | 2 |
3 import java.util.LinkedList; | 3 import java.util.LinkedList; |
4 | 4 |
5 import rep.channel.REPSocketChannel; | |
5 import rep.handler.REPNode; | 6 import rep.handler.REPNode; |
6 import rep.handler.NullForwarder; | 7 import rep.handler.NullForwarder; |
7 | 8 |
8 public class SessionManagerList extends LinkedList<REPNode>{ | 9 public class SessionManagerList extends LinkedList<REPNode>{ |
9 | 10 |
76 | 77 |
77 public REPNode parent() { | 78 public REPNode parent() { |
78 return parent; | 79 return parent; |
79 } | 80 } |
80 | 81 |
81 | 82 public REPNode managerByChannel(REPSocketChannel<REPCommand> channel) { |
82 | 83 for(REPNode e:this) { |
84 if (e.channel==channel) | |
85 return e; | |
86 } | |
87 return null; | |
88 } | |
83 | 89 |
84 } | 90 } |