#ifndef _UTILS_H_ #define _UTILS_H_ #include #include #include #include #include #include #include #include #include #include #include #include #include #include typedef struct { char address[20]; int port; } socket_info_t; int send_packet(const socket_info_t* socket_info, const void* packet, size_t packet_size); Packet_t* wait_for_packet(const socket_info_t* socket_info); uint8_t* generate_random_data(size_t data_size); void show_raw(const uint8_t* data, size_t data_size); #endif