通信 !!!socket.h
#ifndef SOCKET_H #define SOCKET_H #include#include #include #include #include #include //For printing error message #include #include #define PORT_NO 2000 int createServerSocket(); int createClientSocket(const char* host_name); void addGIOChannelToWidget(const int socket_fd, gpointer data); #endif