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