コード例 #1
0
 public virtual void close(ServerConnectionAdapter sca, bool b)
 {
   int num = b ? 1 : 0;
   lock (this.connectionsLock)
   {
     if (!this.connections.remove((object) sca))
       return;
     System.get_out().println(new StringBuilder().append("Close: ").append((object) sca).toString());
     sca.shutdown(num != 0);
   }
 }
コード例 #2
0
 public virtual void onNewConnection(ServerConnectionAdapter sca)
 {
   this.connectionList.add(sca);
 }
コード例 #3
0
 public virtual void add(ServerConnectionAdapter sca)
 {
   lock (this.connectionsLock)
     this.connections.add((object) sca);
 }