Esempio n. 1
0
 public bool SendData(TCPOutPacket tcpOutPacket)
 {
     try
     {
         int ret = _Socket.Send(tcpOutPacket.GetPacketBytes());
         if (ret > 0)
         {
             return(true);
         }
     }
     catch (Exception ex)
     {
         Global.WriteExceptionEx("SendData(TCPOutPacket tcpOutPacket)", ex);
     }
     return(false);
 }
Esempio n. 2
0
 public static bool SendData(int nID, int cmd, byte[] data)
 {
     return(Program.tcpClient.SendData(TCPOutPacket.MakeTCPOutPacket(nID, cmd, data)));
 }
Esempio n. 3
0
 public static bool SendData(TCPOutPacket tcpOutPacket)
 {
     return(Program.tcpClient.SendData(tcpOutPacket));
 }