Java程序辅导

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

客服在线QQ:2653320439 微信:ittutor Email:itutor@qq.com
wx: cjtutor
QQ: 2653320439
#include // for socket(), AF_INT, SOCK_STREAM #include // for EXIT_SUCCESS, EXIT_FAILURE #include // for strerror() #include // for close() #include // for std::cerr, std::endl int main(int argc, char **argv) { int socket_fd = socket(AF_INET, SOCK_STREAM, 0); if (socket_fd == -1) { std::cerr << strerror(errno) << std::endl; return EXIT_FAILURE; } close(socket_fd); return EXIT_SUCCESS; }