summaryrefslogtreecommitdiff
path: root/src/net/network.h
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2005-02-14 00:53:22 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2005-02-14 00:53:22 +0000
commit812103cea68f1da2004dd518c5ad3b448a0e1729 (patch)
treeb4bc86a077385a219474bcb5bca727e0703ed52b /src/net/network.h
parent3628aae5ef1be719603d4aa8e1b209cf5e04520c (diff)
downloadmana-812103cea68f1da2004dd518c5ad3b448a0e1729.tar.gz
mana-812103cea68f1da2004dd518c5ad3b448a0e1729.tar.bz2
mana-812103cea68f1da2004dd518c5ad3b448a0e1729.tar.xz
mana-812103cea68f1da2004dd518c5ad3b448a0e1729.zip
Simplified logging for the sake of simplicity.
Diffstat (limited to 'src/net/network.h')
-rw-r--r--src/net/network.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/net/network.h b/src/net/network.h
index 2564c801..61fb5133 100644
--- a/src/net/network.h
+++ b/src/net/network.h
@@ -75,10 +75,19 @@
#define RFIFOSPACE (buffer_size-in_size) // Return input buffer size
#define RFIFOSET(len) in_size+=len;
+/** Increase size of written data */
void WFIFOSET(int len);
+
+/** Convert an address from int format to string */
char *iptostring(int address);
+
+/** Open a session with a server */
SOCKET open_session(const char* address, short port);
+
+/** Close a session */
void close_session();
+
+/** Send and receive data waiting in the buffers */
void flush();
extern char *in, *out; // Input, output buffer