예제 #1
0
 public void enqueue_packet(CPacket message, CServer server)
 {
     lock (this.operation_lock)
     {
         this.operations_queue.Enqueue(message);
         this.loop_event.Set();
     }
 }
예제 #2
0
파일: CClient.cs 프로젝트: dldbwo19/Mycord
 private void on_connected_server(CUserToken server_token)
 {
     lock (serverlist)
     {
         IPeer server = new CServer(server_token);
         serverlist.Add(server);
     }
     client_main = new CClientProcess();
     on_connectedHandler();
 }