/*\r
- FreeRTOS V7.5.3 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+ FreeRTOS V8.1.2 - Copyright (C) 2014 Real Time Engineers Ltd.\r
All rights reserved\r
\r
VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
the terms of the GNU General Public License (version 2) as published by the\r
Free Software Foundation >>!AND MODIFIED BY!<< the FreeRTOS exception.\r
\r
- >>! NOTE: The modification to the GPL is included to allow you to distribute\r
- >>! a combined work that includes FreeRTOS without being obliged to provide\r
- >>! the source code for proprietary components outside of the FreeRTOS\r
- >>! kernel.\r
+ >>! NOTE: The modification to the GPL is included to allow you to !<<\r
+ >>! distribute a combined work that includes FreeRTOS without being !<<\r
+ >>! obliged to provide the source code for proprietary components !<<\r
+ >>! outside of the FreeRTOS kernel. !<<\r
\r
FreeRTOS is distributed in the hope that it will be useful, but WITHOUT ANY\r
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS\r
CYASSL* xCyaSSL_Object;\r
WORD wVersionRequested;\r
WSADATA xWSAData;\r
-uint8_t cString[ 50 ];\r
-portBASE_TYPE lReturned;\r
+char cString[ 50 ];\r
+BaseType_t lReturned;\r
uint32_t ulCount = 0UL;\r
\r
/* Remove compiler warning about unused parameters. */\r
/* Connect to the secure server. */\r
if( connect( xClientSocket, ( SOCKADDR * ) &xConnection, sizeof( xConnection ) ) == 0 )\r
{\r
- /* The connect was successful. Create a CyaSSL object to associate \r
+ /* The connect was successful. Create a CyaSSL object to associate\r
with this connection. */\r
xCyaSSL_Object = CyaSSL_new( xCyaSSL_ClientContext );\r
- \r
+\r
if( xCyaSSL_Object != NULL )\r
{\r
- /* Associate the created CyaSSL object with the connected \r
+ /* Associate the created CyaSSL object with the connected\r
socket. */\r
lReturned = CyaSSL_set_fd( xCyaSSL_Object, xClientSocket );\r
configASSERT( lReturned == SSL_SUCCESS );\r
do\r
{\r
/* Create the string that is sent to the secure server. */\r
- sprintf( ( char * ) cString, "Message number %lu\r\n", ulCount );\r
+ sprintf( cString, "Message number %lu\r\n", ulCount );\r
\r
- /* The next line is the secure equivalent of the standard \r
+ /* The next line is the secure equivalent of the standard\r
sockets call:\r
lReturned = send( xClientSocket, cString, strlen( cString ) + 1, 0 ); */\r
- lReturned = CyaSSL_write( xCyaSSL_Object, ( const char * ) cString, strlen( ( const char * ) cString ) + 1 );\r
- \r
- \r
+ lReturned = CyaSSL_write( xCyaSSL_Object, cString, strlen( cString ) + 1 );\r
+\r
+\r
/* Short delay to prevent the messages streaming up the\r
console too quickly. */\r
- vTaskDelay( 5 );\r
+ vTaskDelay( 50 );\r
ulCount++;\r
\r
} while( ( lReturned != SOCKET_ERROR ) && ( ulCount < 10UL ) );\r
}\r
- \r
+\r
CyaSSL_free( xCyaSSL_Object );\r
closesocket( xClientSocket );\r
\r
/* Delay for a short time before starting over. */\r
- vTaskDelay( 50 );\r
+ vTaskDelay( 250 );\r
}\r
}\r
}\r