hanzz0502
hanzz0502
我用SuperSocket写了一个服务端,然后用easyClient写了两个客户端,然后两个客户端都连接上服务端,其中一个客户端通过服务端中转向另一个客户端发送图片,图片分段发送,但是发了几个片段后,客户端的GetBodyLengthFromHeader函数中的string strLen = Encoding.UTF8.GetString(bufferStream.Buffers[0].Array, 4, 10);的strLen变成了乱码,导致无法转化为数字(即无法获得片段的长度信息),该如何解决?一开始接收的几个片段是好的,能获得长度,但是从某个片段开始,突然就是乱码了。(使用的协议为:FixedHeaderReceiveFilter)
## Overview 在MixedRealityToolkit-unity的sharing模块中,通过以下代码在Hololens客户端上传Anchor WorldAnchorTransferBatch watb = new WorldAnchorTransferBatch(); Debug.Log("exporting " + exportingAnchorName); watb.AddWorldAnchor(exportingAnchorName, worldAnchor); WorldAnchorTransferBatch.ExportAsync(watb, WriteBuffer, ExportComplete); 其中: private void WriteBuffer(byte[] data) { exportingAnchorBytes.AddRange(data); //private List exportingAnchorBytes = new List();...
## Overview Hi,all.I have got the cameraToWorldMatrix,pixelToCameraMatrix and cameraViewTransform successfully.But the location of the annotations is partial,is my code wrong?how can I change the code? ## Expected Behavior The annotation...
I have written a server using SurperSocket and deploy it to Microsoft Azure through workRole.Now I want to use the custom client on PC to link to the server by...