Hi all,
I'm using Cocoa AsynSocket class (http://code.google.com/p/cocoaasyncsocket/) in my iPhone application which interacts with a remote server to send and and receive data. I have 1 problems.
When I create the AsynSocket instance from a thread other than the main thread it doesn't get connect. didConnectToHost:Port delegate doesnt get fire.
When I create the AsynSocket instance in the main thread it gets connect. But the porblem when I try to write to the socket from a thread other than the main thread nothing happens. Ideally didWriteDataWithTag: delegate should fire here.
Can anyone give a solution. I have stuck with this for few days now. Thanks..