예제 #1
0
파일: MasterPeer.cs 프로젝트: sgww/cozy
 public bool Start(IPAddress ip, int port, IMasterPeerListener listener)
 {
     listener_      = listener;
     EndPoint       = new IPEndPoint(ip, port);
     peerList_      = new PeerList();
     connectorList_ = new ConcurrentDictionary <string, MasterConnector>();
     return(true);
 }
예제 #2
0
파일: MasterPeer.cs 프로젝트: xxy1991/cozy
 public bool Start(IPAddress ip, int port, IMasterPeerListener listener)
 {
     listener_ = listener;
     EndPoint = new IPEndPoint(ip, port);
     peerList_ = new PeerList();
     connectorList_ = new ConcurrentDictionary<string, MasterConnector>();
     return true;
 }