2009-11-02 22:43:19 +00:00
|
|
|
/*
|
2011-04-20 20:33:09 +00:00
|
|
|
* Copyright (c) 2009-2011, The Regents of the University of California,
|
|
|
|
* through Lawrence Berkeley National Laboratory (subject to receipt of any
|
|
|
|
* required approvals from the U.S. Dept. of Energy). All rights reserved.
|
|
|
|
*
|
|
|
|
* This code is distributed under a BSD style license, see the LICENSE file
|
|
|
|
* for complete information.
|
|
|
|
*/
|
2009-11-02 22:43:19 +00:00
|
|
|
|
|
|
|
#ifndef IPERF_TCP_H
|
|
|
|
#define IPERF_TCP_H
|
|
|
|
|
2010-07-22 23:26:38 +00:00
|
|
|
|
2009-11-02 22:43:19 +00:00
|
|
|
/**
|
|
|
|
* iperf_tcp_accept -- accepts a new TCP connection
|
|
|
|
* on tcp_listener_socket for TCP data and param/result
|
|
|
|
* exchange messages
|
|
|
|
*returns 0 on success
|
|
|
|
*
|
|
|
|
*/
|
2010-07-22 23:26:38 +00:00
|
|
|
int iperf_tcp_accept(struct iperf_test *);
|
2009-11-02 22:43:19 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* iperf_tcp_recv -- receives the data for TCP
|
|
|
|
* and the Param/result message exchange
|
|
|
|
*returns state of packet received
|
|
|
|
*
|
|
|
|
*/
|
2010-07-22 23:26:38 +00:00
|
|
|
int iperf_tcp_recv(struct iperf_stream *);
|
2009-11-02 22:43:19 +00:00
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* iperf_tcp_send -- sends the client data for TCP
|
|
|
|
* and the Param/result message exchanges
|
|
|
|
* returns: bytes sent
|
|
|
|
*
|
|
|
|
*/
|
2013-02-18 07:33:36 -08:00
|
|
|
int iperf_tcp_send(struct iperf_stream *) __attribute__((hot));
|
2010-07-22 18:57:08 +00:00
|
|
|
|
|
|
|
|
|
|
|
int iperf_tcp_listen(struct iperf_test *);
|
|
|
|
|
|
|
|
int iperf_tcp_connect(struct iperf_test *);
|
|
|
|
|
2009-11-02 22:43:19 +00:00
|
|
|
|
2010-07-22 23:26:38 +00:00
|
|
|
#endif
|