First draft

This commit is contained in:
angt
2016-01-29 09:59:01 +01:00
parent f6b95d44fb
commit 40d5998fac
2 changed files with 255 additions and 0 deletions

14
mud.h Normal file
View File

@@ -0,0 +1,14 @@
#pragma once
#include <unistd.h>
struct mud;
struct mud *mud_create (void);
void mud_delete (struct mud *);
int mud_bind (struct mud *, const char *, const char *);
int mud_peer (struct mud *, const char *, const char *);
ssize_t mud_recv (struct mud *, void *, size_t);
ssize_t mud_send (struct mud *, const void *, size_t);