Is there a mechanism in Objective-C similar to Netty in Java for diverting TCP to UDT protocols in Transport Layer.
Now I want to implement HTTP request and response (runs over TCP by default) to run over UDT from my application.
Is this possible?
Is there any in-built mechanism in iOS for this?
If you would like to use HTTP than I suggest NSURLConnection class. For example to use POST request with headers do something like this:
Now be careful, this is a synchronous request, and it will block the thread on which it is run for the execution time or timeout time that is defined in kTimeoutInterval constant. This can be changed to async mode with:
in which case the response will come through delegate method. So to decide which approach works best for you, go through NSURLConnection documentation. Hope this helps...