diff --git a/examples/client/client.c b/examples/client/client.c index ef651fbe7..6b9221142 100644 --- a/examples/client/client.c +++ b/examples/client/client.c @@ -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*); diff --git a/examples/server/server.c b/examples/server/server.c index a97bcc93b..7fa6e76ee 100644 --- a/examples/server/server.c +++ b/examples/server/server.c @@ -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*);