Robot Agent
1.0
|
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <arpa/inet.h>
#include <netinet/in.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <unistd.h>
#include "udp.h"
#include "config.h"
#include "def.h"
Go to the source code of this file.
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) |
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 | ||
) |