1: /*
2: * iperf, Copyright (c) 2014, The Regents of the University of
3: * California, through Lawrence Berkeley National Laboratory (subject
4: * to receipt of any required approvals from the U.S. Dept. of
5: * Energy). All rights reserved.
6: *
7: * If you have questions about your rights to use or distribute this
8: * software, please contact Berkeley Lab's Technology Transfer
9: * Department at TTD@lbl.gov.
10: *
11: * NOTICE. This software is owned by the U.S. Department of Energy.
12: * As such, the U.S. Government has been granted for itself and others
13: * acting on its behalf a paid-up, nonexclusive, irrevocable,
14: * worldwide license in the Software to reproduce, prepare derivative
15: * works, and perform publicly and display publicly. Beginning five
16: * (5) years after the date permission to assert copyright is obtained
17: * from the U.S. Department of Energy, and subject to any subsequent
18: * five (5) year renewals, the U.S. Government is granted for itself
19: * and others acting on its behalf a paid-up, nonexclusive,
20: * irrevocable, worldwide license in the Software to reproduce,
21: * prepare derivative works, distribute copies to the public, perform
22: * publicly and display publicly, and to permit others to do so.
23: *
24: * This code is distributed under a BSD style license, see the LICENSE
25: * file for complete information.
26: */
27: #ifndef IPERF_TCP_H
28: #define IPERF_TCP_H
29:
30:
31: /**
32: * iperf_tcp_accept -- accepts a new TCP connection
33: * on tcp_listener_socket for TCP data and param/result
34: * exchange messages
35: *returns 0 on success
36: *
37: */
38: int iperf_tcp_accept(struct iperf_test *);
39:
40: /**
41: * iperf_tcp_recv -- receives the data for TCP
42: * and the Param/result message exchange
43: *returns state of packet received
44: *
45: */
46: int iperf_tcp_recv(struct iperf_stream *);
47:
48:
49: /**
50: * iperf_tcp_send -- sends the client data for TCP
51: * and the Param/result message exchanges
52: * returns: bytes sent
53: *
54: */
55: int iperf_tcp_send(struct iperf_stream *) /* __attribute__((hot)) */;
56:
57:
58: int iperf_tcp_listen(struct iperf_test *);
59:
60: int iperf_tcp_connect(struct iperf_test *);
61:
62:
63: #endif
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>