But in this case, the reader of the stream socket gets 200 bytes.
但在本例中,流套接字的读者得到的是200字节。
As you can see, the output stream is parameterized: you can send some logs to a file and others to a network socket.
可以看出,输出流是参数化的:您可以把一些日志记录放在文件中,其他的送往网络套接字。
The output stream of the socket becomes the input stream to the server application and vice-versa.
套接字的输出流将成为服务器应用程序的输入流,反之亦然。
应用推荐