Paparazzi UAS
v5.10_stable-5-g83a0da5-dirty
Paparazzi is a free software Unmanned Aircraft System.
|
#include <arpa/inet.h>
#include <netinet/in.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include "socket.h"
Go to the source code of this file.
Macros | |
#define | SOCKET_PORT 32000 |
Functions | |
void | socket_init (int is_server) |
int | socket_recv (char *buffer, int len) |
void | socket_send (char *buffer, int len) |
Variables | |
static int | socket_fd |
static struct sockaddr_in socket_server | socket_client |
#define SOCKET_PORT 32000 |
Definition at line 14 of file socket.c.
Referenced by socket_init().
void socket_init | ( | int | is_server | ) |
Definition at line 19 of file socket.c.
References socket_fd, and SOCKET_PORT.
Referenced by main().
int socket_recv | ( | char * | buffer, |
int | len | ||
) |
void socket_send | ( | char * | buffer, |
int | len | ||
) |
|
static |
Definition at line 16 of file socket.c.
Referenced by socket_init(), socket_recv(), and socket_send().