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

udp数据传输长度为0 #55

Open
@qinqoushui

Description

@qinqoushui
  • 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);
        }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions