× Components and Libraries for Networking Development, discussions, problems and suggestions

Question Synapse - socket CanRead problem

  • Premysl Beran
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
4 years 5 months ago - 4 years 5 months ago #11352 by Premysl Beran
Synapse - socket CanRead problem was created by Premysl Beran

I wanted to create a program which listens on the local port. For this purpose, I've selected TCPBlockSocket from Synapse package. I found at Synapse web pages the echo server example which does the same thing. And I found that the function CanRead always return false. So I'm not able to create the server thread.

I tried to search but I didn't find anything that could solve this problem.

In the attachment, you will find the source code of this example with a small modification to show the status of the CanRead function.

Thanks for any advice.

With best regards

Last edit: 4 years 5 months ago by Premysl Beran.

Please Log in or Create an account to join the conversation.