예제 #1
0
        protected override SDKConnection OnIncomingConnection(SDKAddress address)
        {
            MyServerConnection connection = new MyServerConnection(this);

            lock (ClientListLock)
            {
                ClientList.Add(connection);
            }
            return(connection);
        }
예제 #2
0
파일: Program.cs 프로젝트: skyformat99/tonk
 protected override SDKConnection OnP2PConnectionStart(SDKAddress address)
 {
     StartedP2PConnection = true;
     return new MyP2PClientConnection();
 }