Files
mud/mud.h
2016-04-14 19:41:59 +00:00

28 lines
690 B
C

#pragma once
#include <stddef.h>
struct mud;
struct mud *mud_create (const char *);
void mud_delete (struct mud *);
int mud_set_key (struct mud *, unsigned char *, size_t);
int mud_get_fd (struct mud *);
void mud_set_send_timeout_msec (struct mud *, unsigned);
void mud_set_time_tolerance_sec (struct mud *, unsigned);
int mud_bind (struct mud *, const char *);
int mud_peer (struct mud *, const char *, const char *);
int mud_can_pull (struct mud *);
int mud_can_push (struct mud *);
int mud_is_up (struct mud *);
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);