From 0d49fb74eadcf933f696420cd182077927680d26 Mon Sep 17 00:00:00 2001 From: Nathanael Sensfelder Date: Wed, 18 Jan 2017 19:09:16 +0100 Subject: Done with 'core', starting to work on 'knowledge'. --- src/irc/network.h | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 src/irc/network.h (limited to 'src/irc/network.h') diff --git a/src/irc/network.h b/src/irc/network.h new file mode 100644 index 0000000..647b19c --- /dev/null +++ b/src/irc/network.h @@ -0,0 +1,28 @@ +#ifndef _ZoO_IO_NETWORK_H_ +#define _ZoO_IO_NETWORK_H_ +#include "network_types.h" + +int ZoO_network_connect +( + struct ZoO_network net [const static 1], + const char host [const restrict static 1], + const char port [const restrict static 1], + const char channel [const restrict static 1], + const char user [const restrict static 1], + const char name [const restrict static 1], + const char nick [const restrict static 1] +); + +int ZoO_network_receive +( + struct ZoO_network net [const static 1], + size_t msg_offset [const restrict static 1], + size_t msg_size [const restrict static 1], + enum ZoO_msg_type type [const restrict static 1] +); + +int ZoO_network_send (struct ZoO_network net [const restrict static 1]); + +void ZoO_network_disconnect (struct ZoO_network net [const restrict static 1]); + +#endif -- cgit v1.2.3-70-g09d2