Ejemplo n.º 1
0
 public void SocketServer_DatagramReceived(object sender, DSCClientDataInEventArgs e)
 {
     //int nC = e.Client.ID.ID;
     //if (nC >= SrvArray.GetLowerBound(0))
     //{
     //    if ((nC <= SrvArray.GetUpperBound(0)) && (SrvArray[nC].Socket == e.Client.ClientSocket))
     //    {
     //        SrvArray[nC].s2E0 = SrvArray[nC].s2E0 + HUtil32.ByteAryToString(e.Client.Datagram, 0, e.Client.Datagram.Length);
     //    }
     //}
 }
Ejemplo n.º 2
0
 public void IDSocketRead(object sender, DSCClientDataInEventArgs e)
 {
     HUtil32.EnterCriticalSection(M2Share.g_Config.UserIDSection);
     try
     {
         M2Share.g_Config.sIDSocketRecvText = M2Share.g_Config.sIDSocketRecvText + e.Data.ToString(e.Data.Length);
     }
     finally
     {
         HUtil32.LeaveCriticalSection(M2Share.g_Config.UserIDSection);
     }
 }
Ejemplo n.º 3
0
 public void MsgClientRead(object sender, DSCClientDataInEventArgs e)
 {
     sRecvMsg = sRecvMsg + HUtil32.ByteAryToString(e.Data, 0, e.Data.Length);
 }
Ejemplo n.º 4
0
 public void MsgClientError(object sender, DSCClientDataInEventArgs e)
 {
     e.socket.Close();
 }