diff options
Diffstat (limited to 'babeld/net.h')
-rw-r--r-- | babeld/net.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/babeld/net.h b/babeld/net.h new file mode 100644 index 0000000..2559602 --- /dev/null +++ b/babeld/net.h @@ -0,0 +1,16 @@ +// SPDX-License-Identifier: MIT +/* +Copyright (c) 2007, 2008 by Juliusz Chroboczek +*/ + +#ifndef BABEL_NET_H +#define BABEL_NET_H + +int babel_socket(int port); +int babel_recv(int s, void *buf, int buflen, struct sockaddr *sin, int slen); +int babel_send(int s, + void *buf1, int buflen1, void *buf2, int buflen2, + struct sockaddr *sin, int slen); +int tcp_server_socket(int port, int local); + +#endif /* BABEL_NET_H */ |