コード例 #1
0
 void Server_OnDisconnected(object sender, ConnectionEventArgs e)
 {
     leapReader.OnSerializationReady -= e.Connection.OnReaderReady;
     OnConfigChanged -= e.Connection.OnReaderReady;
     AppendLog("Disconnected: " + e.Connection.Name);
     UpdateConnectionCountLabel();
 }
コード例 #2
0
        void Server_OnAddedConnection(object sender, ConnectionEventArgs e)
        {
            leapReader.OnSerializationReady += e.Connection.OnReaderReady;
            OnConfigChanged += e.Connection.OnReaderReady;

            AppendLog("New connection: " + e.Connection.Name);
            UpdateConnectionCountLabel();
        }