new process for client connection");} // read from socket, process queries, etc.else {
// use the poll system call to be notified about socket status changes// if result > 0, this means tha
我正在编写一个简单的客户机/服务器程序。基本上,客户端向服务器发送一个查询字符串,服务器也以字符串的形式发回一个答案。服务器是使用基于套接字的boost/ASIO库用C++编写的。服务器是在Linux机器上编写的(Fedora 25)。客户端是用Java编写的。当客户端也在Linux上时,不会出现此问题。socket = new Socket(host, port);
BufferedReader in = new