2013-03-28 11:28:38 -07:00
|
|
|
/* server.h
|
2012-09-19 23:38:41 -07:00
|
|
|
*
|
2015-01-08 09:39:04 -07:00
|
|
|
* Copyright (C) 2006-2015 wolfSSL Inc.
|
2012-09-19 23:38:41 -07:00
|
|
|
*
|
2015-01-06 12:14:15 -07:00
|
|
|
* This file is part of wolfSSL. (formerly known as CyaSSL)
|
2012-09-19 23:38:41 -07:00
|
|
|
*
|
2015-01-06 12:14:15 -07:00
|
|
|
* wolfSSL is free software; you can redistribute it and/or modify
|
2012-09-19 23:38:41 -07:00
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
2015-01-06 12:14:15 -07:00
|
|
|
* wolfSSL is distributed in the hope that it will be useful,
|
2012-09-19 23:38:41 -07:00
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
2014-04-11 15:58:58 -06:00
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
2012-09-19 23:38:41 -07:00
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2015-02-25 13:34:29 -08:00
|
|
|
THREAD_RETURN WOLFSSL_THREAD server_test(void* args);
|
2015-10-14 19:13:45 -07:00
|
|
|
|
|
|
|
/* Echo bytes using buffer of TEST_BUFFER_SIZE until [echoData] bytes are complete. */
|
|
|
|
/* If [bechmarkThroughput] set the statistcs will be output at the end */
|
|
|
|
int ServerEchoData(WOLFSSL* ssl, int clientfd, int echoData, int benchmarkThroughput);
|