예제 #1
0
//--------------------------------------------------------------------------------------------
        public virtual void OnConnected(SocketClient socketclient)
        {
        }
예제 #2
0
파일: SocketServer.cs 프로젝트: weavver/net
 //-------------------------------------------------------------------------------------------
 public virtual void OnAccept(Object pSock)
 {
     Socket socket		= (Socket) pSock;
     SocketClient client = new SocketClient(socket);
     try
     {
         connections.Add(client);
     }
     catch (Exception e)
     {
         DebugOut("Unknown error:\r\n\r\n" + e.ToString(), true);
         if (client != null)
         {
             client.Disconnect();
         }
         try
         {
             client = null;
         }
         catch
         {
         }
     }
 }
예제 #3
0
파일: SocketClient.cs 프로젝트: weavver/net
 //--------------------------------------------------------------------------------------------
 public virtual void OnConnected(SocketClient socketclient)
 {
 }