#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.
◆ SOCKET_PORT
#define SOCKET_PORT 32000 |
◆ socket_init()
void socket_init |
( |
int |
is_server | ) |
|
◆ socket_recv()
int socket_recv |
( |
char * |
buffer, |
|
|
int |
len |
|
) |
| |
◆ socket_send()
void socket_send |
( |
char * |
buffer, |
|
|
int |
len |
|
) |
| |
◆ socket_client
struct sockaddr_in socket_server socket_client |
|
static |
◆ socket_fd