diff --git a/src/net.h b/src/net.h new file mode 100644 index 0000000..a8b45c6 --- /dev/null +++ b/src/net.h @@ -0,0 +1,18 @@ +/* -*- c-basic-offset: 4 -*- */ + +#ifndef KHET_NET_H +#define KHET_NET_H + +#include + +extern FILE *net_side[2]; + +#define net_getc(side) getc(net_side[i]) + +extern void net_server(int port); + +extern void net_all_printf(const char *fmt, ...); +extern void net_side_printf(int side, const char *fmt, ...); +extern void net_all_flush(); + +#endif