pull in very simple client/server demo code

inspired by http://www.linuxhowtos.org/C_C++/socket.htm
This commit is contained in:
mdiluzio 2015-01-02 15:13:05 +00:00
parent 0619031cb6
commit b4240cf1c8
5 changed files with 176 additions and 4 deletions
source/client

View file

@ -1,4 +1,13 @@
#ifndef _TTRTS_NET_H_
#define _TTRTS_NET_H_
#include <stdio.h>
#include <stdlib.h>
inline void error(const char *msg)
{
perror(msg);
exit(1);
}
#endif