|
Paparazzi UAS
v5.12_stable-4-g9b43e9b
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"
Include dependency graph for socket.c: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().
Here is the caller graph for this function:| 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().