Files
mud/mud.h
2016-02-25 15:13:43 +00:00

20 lines
432 B
C

#pragma once
#include <stddef.h>
struct mud;
struct mud *mud_create (const unsigned char *, size_t);
void mud_delete (struct mud *);
int mud_get_fd (struct mud *);
int mud_bind (struct mud *, const char *);
int mud_peer (struct mud *, const char *, const char *);
int mud_pull (struct mud *);
int mud_push (struct mud *);
int mud_recv (struct mud *, void *, size_t);
int mud_send (struct mud *, const void *, size_t);