summaryrefslogtreecommitdiffstats
path: root/babeld/net.h
blob: 25596020696f65e66ae75521cd43ebf2a4d17464 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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 */