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

Receive the messy code when using easyClient to transmit picture #90

@hanzz0502

Description

@hanzz0502

我用SuperSocket写了一个服务端,然后用easyClient写了两个客户端,然后两个客户端都连接上服务端,其中一个客户端通过服务端中转向另一个客户端发送图片,图片分段发送,但是发了几个片段后,客户端的GetBodyLengthFromHeader函数中的string strLen = Encoding.UTF8.GetString(bufferStream.Buffers[0].Array, 4, 10);的strLen变成了乱码,导致无法转化为数字(即无法获得片段的长度信息),该如何解决?一开始接收的几个片段是好的,能获得长度,但是从某个片段开始,突然就是乱码了。(使用的协议为:FixedHeaderReceiveFilter)

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