Note : 底层的套接字流(socket stream)上下文选项 有可能通过 底层传输(underlying transport)支持附加的上下文选项。
基于1个网页-相关网页
流套接字 Stream Socket
字节流套接字 Stream socket
叫做流套接字 streaming socket
服务器套接字创建流程 socket, bind, listen, accept
客户端套接字创建流程 socket, connect
可以看出,输出流是参数化的:您可以把一些日志记录放在文件中,其他的送往网络套接字。
As you can see, the output stream is parameterized: you can send some logs to a file and others to a network socket.
但在本例中,流套接字的读者得到的是200字节。
But in this case, the reader of the stream socket gets 200 bytes.
套接字的输出流将成为服务器应用程序的输入流,反之亦然。
The output stream of the socket becomes the input stream to the server application and vice-versa.
应用推荐