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

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

Open
hanzz0502 opened this issue Jun 6, 2018 · 2 comments
Open

Comments

@hanzz0502
Copy link

hanzz0502 commented Jun 6, 2018

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

@hanzz0502 hanzz0502 changed the title Receive the messy code when using easyClient to transmitter picture Receive the messy code when using easyClient to transmit picture Jun 6, 2018
@waleswood
Copy link

不贴代码怎么帮你分析?

@hanzz0502
Copy link
Author

hanzz0502 commented Nov 18, 2018 via email

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

2 participants