public void SendData(NetSendData data) { lock (m_queueData) { m_queueData.Enqueue(data); } }
public void SendMsg(NetSendData data) { if (m_cSocketClient.Status == SocketClientStatus.Connected) { m_cSocketClient.SendNetData(data); } }
public override void SendNetData(NetSendData data) { if (data.sendOpcode < 10000) { m_queueSend.Enqueue(data); } else { m_queueFrameSend.Enqueue(data); } }
public override void SendNetData(NetSendData data) { if (m_cSender != null) { m_cSender.SendData(data); } else { CLog.LogError("socket not connected,can not send net Data!"); } }
//发送网络数据(未序列化) public abstract void SendNetData(NetSendData data);