EMS/drv/drv_tcp.h

19 lines
465 B
C

#ifndef __DRV_TCP_H_
#define __DRV_TCP_H_
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <unistd.h>
#include <net/if.h>
#include <sys/ioctl.h>
#include <pthread.h>
void getInterfacesAndIPs(char *interfaces[], char *ips[], int *count);
void closeAndFree(int server_fd, int new_socket, char *interface, char *ip);
void tcpServe(int port);
void *tcpServeThread(void *arg);
#endif