Java程序辅导

C C++ Java Python Processing编程在线培训 程序编写 软件开发 视频讲解

客服在线QQ:2653320439 微信:ittutor Email:itutor@qq.com
wx: cjtutor
QQ: 2653320439
/** * File: client-socket.h * --------------------- * Presents the interface of the routine network * clients can use to connect to a specific port of * a remote host. */ #ifndef _client_socket_ #define _client_socket_ #include /** * Constant: kClientSocketError * ---------------------------- * Sentinel used to communicate that a connection * to a remote server could not be made. */ const int kClientSocketError = -1; /** * Function: createClientSocket * ---------------------------- * Establishes a connection to the provided host * on the specified port, and returns a bidirectional * socket descriptor that can be used for two-way * communication with the service running on the * identified host's port. */ int createClientSocket(const std::string& host, unsigned short port); #endif