revise the comments about port 0 use in the example client and server

This commit is contained in:
John Safranek 2015-12-24 15:42:52 -08:00
parent 99797eb4f6
commit 92cb8eee61
2 changed files with 8 additions and 8 deletions

View File

@ -52,10 +52,10 @@
#include "examples/client/client.h" #include "examples/client/client.h"
/* Note on using port 0: the client and server standalone examples don't /* Note on using port 0: the client standalone example doesn't utilize the
* utilize the port 0 port sharing; that is used by the testsuite which uses * port 0 port sharing; that is used by (1) the server in external control
* this code and sets up the correct port numbers when the internal thread, * test mode and (2) the testsuite which uses this code and sets up the correct
* using the server code, uses port 0. */ * port numbers when the internal thread using the server code using port 0. */
#ifdef WOLFSSL_CALLBACKS #ifdef WOLFSSL_CALLBACKS
int handShakeCB(HandShakeInfo*); int handShakeCB(HandShakeInfo*);

View File

@ -54,10 +54,10 @@
#include "examples/server/server.h" #include "examples/server/server.h"
/* Note on using port 0: the client and server standalone examples don't /* Note on using port 0: if the server uses port 0 to bind an ephemeral port
* utilize the port 0 port sharing; that is used by the testsuite which uses * number and is using the ready file for scripted testing, the code in
* this code and sets up the correct port numbers when the internal thread, * test.h will write the actual port number into the ready file for use
* using the server code, uses port 0. */ * by the client. */
#ifdef CYASSL_CALLBACKS #ifdef CYASSL_CALLBACKS
int srvHandShakeCB(HandShakeInfo*); int srvHandShakeCB(HandShakeInfo*);