nilshenrich / TCP_ServerClient

C++ library providing an asynchronous TCP server and client. Additionally, the TCP connection can be TLS encrypted and two-way authenticated.
MIT License
0 stars 0 forks source link

Message exchange issues in example #2

Closed nilshenrich closed 1 month ago

nilshenrich commented 2 months ago

Running the continuous mode of the example doesn't behave as expected.

nilshenrich commented 2 months ago

This behaviour is tested in unit tests using stringstream. No bugs found here, example works with file stream.

nilshenrich commented 2 months ago

Add ::std::flush to ostream to immediately update the stream. Won't fix all issues, but makes the file being updated while runtime is running

nilshenrich commented 1 month ago

The continuous TCP message from server to client is not sent twice, but the same message is sent on connection init and message received

nilshenrich commented 1 month ago

Not TLS messages sent because I forgot to create certificates before.\ With 5dad8e6330ad3e9392f9842bf4871b78242d7fd1 the certificates are created automatically when compiling the example