本文介绍了窗口移动网络编程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好!
我对TCP套接字有一些问题.我使用了TCPListener/TCP Client.当我在服务器(PC)和客户端(PPC)之间发送和接收字符串时,我使用了byte [].小于8kb的字符串没有问题.但是,当我从服务器向客户端发送超过8kb的字符串时,客户端仅收到8kb.我想知道在这种情况下需要什么流? byte []/streamreader或二进制tream ... etc来发送/接收大于8kb的字符串.
非常感谢!
祝你有美好的一天.
Hi all!
I have some problem with TCP socket. I used TCPListener/ TCP Client. When I sent and received string between server (PC) and client (PPC), I used byte[]. It is no problem with string less than 8kb. However, When I sent a string more than 8kb from server to client, client only received 8kb. I want to know what stream I need in this situation? byte[]/streamreader or binary tream...etc to sent/received a string more than 8kb.
Thank you a lot!
Have a nice day.
推荐答案
这篇关于窗口移动网络编程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!