예제 #1
0
    public void SendCommand(int protocol, int extra, BasePacketData data)
    {
        TcpPacket sendPacket = new TcpPacket();

        sendPacket.Initialize();
        data.Serialize(sendPacket);
        sendPacket.SetHeader(protocol, extra);

        #region 수정 전
        this.Connector.SendPacket(sendPacket);
        #endregion

        #region 쓰레드로 따로 빼서 전송
        //this.sendLocker.Lock();
        //this.sendQueue.Enqueue(sendPacket);
        //this.sendLocker.Unlock();
        #endregion
    }
 public void SendCommand(int protocol, int extra, BasePacketData data)
 {
     Network.Instance.SendCommand(protocol, extra, data);
 }