Beispiel #1
0
 private void OnConnect(IClient c)
 {
     Network.Register register = new Network.Register();
     register.Name = Name;
     register.CreateToken(this.VerifyKey);
     c.Send(register);
 }
Beispiel #2
0
 private void OnServerConnect(IClient c)
 {
     LocalHost = c.Socket.LocalEndPoint.AddressFamily.ToString();
     Network.Register register = new Network.Register();
     register.Name = Name;
     register.CreateToken(this.VerifyKey);
     c.Send(register);
 }
Beispiel #3
0
 public void Register(Network.Register register, ISession session)
 {
     GetOrCreateNode(register.Name, session);
 }