First commit

This commit is contained in:
Steffen Lange 2018-04-08 21:34:42 +02:00
commit 0a28bac78a
37 changed files with 1963 additions and 0 deletions

15
tcpcli.h Normal file
View file

@ -0,0 +1,15 @@
#ifndef _TCPCLI_H_
#define _TCPCLI_H_
#include <string.h>
#include <netdb.h>
#include <unistd.h>
#include <sys/socket.h>
#include <sys/types.h>
int tcp_connect(const char *host, const char *port);
void tcp_close(int sock);
int tcp_send(int sock, const char *str);
int tcp_receive(int sock, char *buffer, unsigned int size);
#endif