Ejemplo n.º 1
0
 void listener_OnAccept(AsySocket AcceptedSocket)
 {
     //ע���¼�
     AcceptedSocket.OnStringDataAccept += new StringDataAcceptHandler(AcceptedSocket_OnStringDataAccept);
     AcceptedSocket.OnClosed += new AsySocketClosedEventHandler(AcceptedSocket_OnClosed);
     AcceptedSocket.BeginAcceptData();
     //����
     //listBox1.Items.Add(AcceptedSocket.ID);
     clients.Add(AcceptedSocket.ID, AcceptedSocket);
 }