Skip to content
This repository has been archived by the owner on Feb 25, 2020. It is now read-only.

udp数据传输长度为0 #55

Open
qinqoushui opened this issue Feb 15, 2020 · 0 comments
Open

udp数据传输长度为0 #55

qinqoushui opened this issue Feb 15, 2020 · 0 comments

Comments

@qinqoushui
Copy link

qinqoushui commented Feb 15, 2020

  • udp数据传输长度为0
  1. 在IServerPacketProcessor中声明如下:
void ProcessUdpFromBuffer(EndPoint sender, byte[] buffer, int offset = 0, int length = 0);
  1. 在UdpClientListener中未指定数据长度
 private async Task Process(EndPoint endPoint, byte[] buffer)
        {
           // serverPacketProcessor.ProcessUdpFromBuffer(endPoint, buffer);
            serverPacketProcessor.ProcessUdpFromBuffer(endPoint, buffer,0,buffer.Length);
            endPointPool.Push(endPoint);
        }
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant