Files
mud/mud.h
Adrien Gallouët 582eb29617 Use unsigned long in mud_set_x()
Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
2018-02-11 10:14:58 +00:00

30 lines
805 B
C

#pragma once
#include <stddef.h>
struct mud;
struct mud *mud_create (int, int, int);
void mud_delete (struct mud *);
int mud_get_fd (struct mud *);
int mud_set_key (struct mud *, unsigned char *, size_t);
int mud_get_key (struct mud *, unsigned char *, size_t *);
int mud_set_mtu (struct mud *, int mtu);
int mud_get_mtu (struct mud *);
int mud_set_send_timeout (struct mud *, unsigned long);
int mud_set_time_tolerance (struct mud *, unsigned long);
int mud_set_tc (struct mud *, int);
int mud_set_aes (struct mud *);
int mud_peer (struct mud *, const char *, int);
int mud_add_path (struct mud *, const char *);
int mud_del_path (struct mud *, const char *);
int mud_recv (struct mud *, void *, size_t);
int mud_send (struct mud *, const void *, size_t, int);