Robot Agent
1.0
|
#include <arpa/inet.h>
#include <netinet/in.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <unistd.h>
Go to the source code of this file.
Data Structures | |
struct | s_UDP_STRUCT |
UDP structure. More... | |
Typedefs | |
typedef struct s_UDP_STRUCT | udp_t |
UDP structure. More... | |
Functions | |
int | udp_init_broadcast (udp_t *udp) |
int | udp_init_receive (udp_t *udp) |
udp_t * | udp_open (char *broadcast_ip, int port, int packet_size) |
int | udp_close (udp_t *udp) |
int | udp_broadcast (udp_t *udp, char *packet, int len) |
int | udp_receive (udp_t *udp, char *packet, int *len) |
typedef struct s_UDP_STRUCT udp_t |
UDP structure.
int udp_broadcast | ( | udp_t * | udp, |
char * | packet, | ||
int | len | ||
) |
int udp_close | ( | udp_t * | udp | ) |
int udp_init_broadcast | ( | udp_t * | udp | ) |
int udp_init_receive | ( | udp_t * | udp | ) |
udp_t* udp_open | ( | char * | broadcast_ip, |
int | port, | ||
int | packet_size | ||
) |
int udp_receive | ( | udp_t * | udp, |
char * | packet, | ||
int * | len | ||
) |