Exemplo n.º 1
0
Arquivo: main.cs Projeto: hkiaipc/guye
 //发送数据
 private bool rs_send(string ip, byte[] sendbuf)
 {
     ISocketRS rs = GetISocketRSlist(ip)._rs;
     _currentSocketRS = rs;
     try
     {
         _currentSocketRS.Send(sendbuf);
         return true;
     }
     catch
     {
         try
         {
             _currentSocketRS.Close();
         }
         catch { }
         return false;
     }
 }