Inheritance: NetworkConnection
Exemplo n.º 1
0
 internal void InternalDisconnectAll()
 {
     this.m_SimpleServerSimple.DisconnectAllConnections();
     if (this.m_LocalConnection != null)
     {
         this.m_LocalConnection.Disconnect();
         this.m_LocalConnection.Dispose();
         this.m_LocalConnection = null;
     }
     s_Active = false;
     this.m_LocalClientActive = false;
 }
Exemplo n.º 2
0
 internal int AddLocalClient(LocalClient localClient)
 {
     if (this.m_LocalConnectionsFakeList.Count != 0)
     {
         Debug.LogError("Local Connection already exists");
         return -1;
     }
     this.m_LocalConnection = new ULocalConnectionToClient(localClient);
     this.m_LocalConnection.connectionId = 0;
     this.m_SimpleServerSimple.SetConnectionAtIndex(this.m_LocalConnection);
     this.m_LocalConnectionsFakeList.Add(this.m_LocalConnection);
     this.m_LocalConnection.InvokeHandlerNoData(0x20);
     return 0;
 }