pull in very simple client/server demo code
inspired by http://www.linuxhowtos.org/C_C++/socket.htm
This commit is contained in:
parent
0619031cb6
commit
b4240cf1c8
5 changed files with 176 additions and 4 deletions
source/client
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue