Select port in mud_create() and add mud_set_key()
This commit is contained in:
5
mud.h
5
mud.h
@@ -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 *);
|
||||
|
||||
Reference in New Issue
Block a user