views:

605

answers:

2

I'm using gcc for compiling and linking Objective-C programs, and I'm wondering if there is socket library that is unified, portable, and/or cross-platform (like Python's socket module).

+1  A: 

You’ve only specified gcc and Objectve-C. Of course there are no sockets in both of them. What is your platform? What are common libraries or frameworks?

There are BSD sockets on Mac OS which are similar in nearly all Unicees.

Nikolai Ruhe
I'm aware that they aren't built-ins. As I asked, I am wondering if there is "unified, portable, and/or cross-platform" library.
mtasic
Cross platform? On mac you use gcc/objective-c so I assume you write code using cocoa frameworks ... on what other platform (apart from cocoa-touch) would you like to compile your objective-c/cocoa code with gcc?
stefanB
+1  A: 

code.google.com/p/btlsocket/

Also read the documentation on NSSocketPort. You can take a look at the examples here.

Felixyz