Forgot headerfile for network part.
This commit is contained in:
parent
227e1e9254
commit
ea727f335a
18
src/net.h
Normal file
18
src/net.h
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
/* -*- c-basic-offset: 4 -*- */
|
||||||
|
|
||||||
|
#ifndef KHET_NET_H
|
||||||
|
#define KHET_NET_H
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
|
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
|
Reference in New Issue
Block a user