mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-02-11 09:40:38 +00:00
Fix order of steps in DTLS server example program
Fixes the numbered order of steps in the DTLS server example program. Signed-off-by: Daniel Mangum <georgedanielmangum@gmail.com>
This commit is contained in:
parent
92a55bf5ea
commit
af2f7a6fcb
@ -263,7 +263,7 @@ reset:
|
|||||||
mbedtls_ssl_session_reset(&ssl);
|
mbedtls_ssl_session_reset(&ssl);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* 3. Wait until a client connects
|
* 5. Wait until a client connects
|
||||||
*/
|
*/
|
||||||
printf(" . Waiting for a remote connection ...");
|
printf(" . Waiting for a remote connection ...");
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
@ -288,7 +288,7 @@ reset:
|
|||||||
printf(" ok\n");
|
printf(" ok\n");
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* 5. Handshake
|
* 6. Handshake
|
||||||
*/
|
*/
|
||||||
printf(" . Performing the DTLS handshake...");
|
printf(" . Performing the DTLS handshake...");
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
@ -310,7 +310,7 @@ reset:
|
|||||||
printf(" ok\n");
|
printf(" ok\n");
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* 6. Read the echo Request
|
* 7. Read the echo Request
|
||||||
*/
|
*/
|
||||||
printf(" < Read from client:");
|
printf(" < Read from client:");
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
@ -344,7 +344,7 @@ reset:
|
|||||||
printf(" %d bytes read\n\n%s\n\n", len, buf);
|
printf(" %d bytes read\n\n%s\n\n", len, buf);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* 7. Write the 200 Response
|
* 8. Write the 200 Response
|
||||||
*/
|
*/
|
||||||
printf(" > Write to client:");
|
printf(" > Write to client:");
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
@ -363,7 +363,7 @@ reset:
|
|||||||
printf(" %d bytes written\n\n%s\n\n", len, buf);
|
printf(" %d bytes written\n\n%s\n\n", len, buf);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* 8. Done, cleanly close the connection
|
* 9. Done, cleanly close the connection
|
||||||
*/
|
*/
|
||||||
close_notify:
|
close_notify:
|
||||||
printf(" . Closing the connection...");
|
printf(" . Closing the connection...");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user