#ifndef SOCKET_H #define SOCKET_H #include #include #include #include #include // ========================= // UDP SOCKET FUCNTIONS // ========================= // Server hosts a UDP socket at 127.0.0.1:12000 // Client sends a message to the server at 11000 int connect_udp_socket(const char* ip, int port); int bind_udp_socket(int sockfd, const char* ip, int port); int send_udp_message(int sockfd, const char* message, const char* dest_ip, int dest_port); #endif // SOCKET_H