Select port in mud_create() and add mud_set_key()

This commit is contained in:
angt
2016-03-01 15:08:28 +00:00
parent a1ce4740b4
commit fc8e97caef
2 changed files with 60 additions and 38 deletions

5
mud.h
View File

@@ -4,10 +4,11 @@
struct mud;
struct mud *mud_create (const unsigned char *, size_t);
struct mud *mud_create (const char *);
void mud_delete (struct mud *);
int mud_get_fd (struct mud *);
int mud_set_key (struct mud *, unsigned char *, size_t);
int mud_get_fd (struct mud *);
int mud_bind (struct mud *, const char *);
int mud_peer (struct mud *, const char *, const char *);