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

View File

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