error: ‘closesocket’ was not declared in this scope windows下 closesocket(mSocket); 在linux系统下 改为 close(mSocket);