From ea727f335aab94091c2cb3b5a2a2b997179de94a Mon Sep 17 00:00:00 2001 From: steinarh Date: Thu, 9 Oct 2008 19:22:50 +0000 Subject: [PATCH] Forgot headerfile for network part. --- src/net.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/net.h 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