Network port listening

I am writing an application (an instant messenger). I would like to know whether IOS supports application to listen to a particular ports for incoming packet continuously (when the application is active not suspend).

Thanks.

Answers


Short answer: yes

Long answer: Chris provided a link how to deal with sockets using CFNetwork Framework. I'd like to add the hint for cocoa-asyncsocket, a light-weight object-orientated wrapper for that framework. A true time-saver.


Survey says: yes.

http://oreilly.com/iphone/excerpts/iphone-sdk/network-programming.html


Need Your Help

Determine whether app is communicating with APNS sandbox or production environment

ios push-notification apple-push-notifications

I have push notifications set up in my app. I'm trying to determine whether the device token I've received from APNS in the application:didRegisterForRemoteNotificationsWithDeviceToken: method came...

Is there a way to set the background color in blackberry?

blackberry colors background

I would like to chnage the background color.. At first i tried to creat a vertical container, but this did not work becouse the edges wrapped arounbd the content, so there was a big right and left

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.