diff options
| author | Franklin Wei <git@fwei.tk> | 2016-02-01 22:12:12 -0500 |
|---|---|---|
| committer | Franklin Wei <git@fwei.tk> | 2016-02-01 22:12:12 -0500 |
| commit | a006044fbcb3355f0fa063720e7c41f4971894a0 (patch) | |
| tree | d831c6f9a1cc5e9b9166b22be2194c4fd407dec7 /src/client.h | |
| parent | 7e223238ec9d6711290b1718c44cfe8158477b71 (diff) | |
| download | netcosm-a006044fbcb3355f0fa063720e7c41f4971894a0.zip netcosm-a006044fbcb3355f0fa063720e7c41f4971894a0.tar.gz netcosm-a006044fbcb3355f0fa063720e7c41f4971894a0.tar.bz2 netcosm-a006044fbcb3355f0fa063720e7c41f4971894a0.tar.xz | |
better command parsing
Diffstat (limited to 'src/client.h')
| -rw-r--r-- | src/client.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/client.h b/src/client.h index eeb515d..4ab7f9b 100644 --- a/src/client.h +++ b/src/client.h @@ -43,3 +43,7 @@ void out_raw(const void*, size_t); /* called for every client */ void client_main(int sock, struct sockaddr_in *addr, int, int to_parent, int from_parent); + +/* can (and should) be called before forking the child */ +void client_init(void); +void client_shutdown(void); |