Exemplo 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);
 }
Exemplo n.º 2
0
 public static bool SendData(int nID, int cmd, byte[] data)
 {
     return(Program.tcpClient.SendData(TCPOutPacket.MakeTCPOutPacket(nID, cmd, data)));
 }
Exemplo n.º 3
0
 public static bool SendData(TCPOutPacket tcpOutPacket)
 {
     return(Program.tcpClient.SendData(tcpOutPacket));
 }