tags:

views:

36

answers:

0

Hello,

I am developing an iPhone application where I use socketpair() as a means of communications between different modules of the application. It works fine as long as the iPhone is active. Once it goes to sleep, after few minutes (say 10 mins) the data that arrives at one end of the socketpair does not seem to be delivered to the other end. Once I wake it up, then all the data arrives at once (seems like it was being accumulated at the other end).

Could you let me know how can I fix this? Shall I use pipe() instead of socketpair() ?

Thanks.