login about faq

Application was designed to use sync sockets (I assume it is blocking sockets). There is a separate thread to receive data and another thread to send data. Thread that receiving data always hangs on read something.

The problem is when you try to send something at the same time when you receive data I have a crash. The same is when I want to close socket during receiving data.

So What should I do to avoid such situation when I try to send data and read at the same time. Is in CkSocket any method to ask socket if it is not blocked.

Maybe you know better approach how to synchronize sockets for such operations.

PS: OS is iOS. Sockets is on c++ Last Error in different cases shows different log.

asked Mar 29 '13 at 13:28

vol_ya's gravatar image


Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: Mar 29 '13 at 13:28

Seen: 1,937 times

Last updated: Mar 29 '13 at 13:28

powered by OSQA