objective-c - 使用socket可以链接。传不过去数据
过去多啦不再A梦
过去多啦不再A梦 2017-04-28 09:06:35
0
1
766

Objective-C
场景
使用socket可以链接。传不过去数据
具体问题
在ios中用socket怎样拼接数据。包头加包体形式。包头代表长度 包体就是数据。
这个知道怎么回事么

过去多啦不再A梦
过去多啦不再A梦

reply all(1)
Ty80

Each request generates a uuid. In the returned data, it is judged by the uuid
SOCKET has a long connection in the form of tcp, which requires heartbeat packet maintenance. There are also broken links in the form of UDP. I usually use tags to differentiate. TCP carries a tag when sending. UDP also needs to create multiple receivers, each with different tags. Welcome to join the IoT iOS communication group 499604323

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template