This repository has been archived on 2024-06-18. You can view files and clone it, but cannot push or open issues/pull-requests.
2016-09-16 00:09:04 +02:00
|
|
|
#ifndef __TCPDSERVER_H__
|
|
|
|
#define __TCPDSERVER_H__
|
|
|
|
|
2016-09-16 15:22:14 +02:00
|
|
|
#include <sys/types.h>
|
|
|
|
#include <sys/socket.h>
|
|
|
|
#include <netinet/in.h>
|
|
|
|
#include <arpa/inet.h>
|
2016-09-16 00:09:04 +02:00
|
|
|
|
|
|
|
int initConnection ();
|
|
|
|
void endConnection (int sock, int csock);
|
2016-09-16 15:22:14 +02:00
|
|
|
void printClientAddr (struct sockaddr_in *csin);
|
|
|
|
void write_message(int sock, const char *buffer);
|
|
|
|
int read_message(int sock, char *buffer);
|
2016-09-16 00:09:04 +02:00
|
|
|
|
|
|
|
|
|
|
|
#endif
|