No servers in iPhone SDK?

surur

Well-known member
Aug 6, 2005
1,412
0
0
Visit site
I just read somewhere that the official SDK also prohibits servers listening on open sockets (like FTP or telnet servers).

Is this true?

Surur
 

cmaier

Well-known member
Jun 29, 2007
728
0
0
Visit site
I don't see any mention of servers in the guidelines, and the SDK clearly supports it. Did the article base this on some specific language? (there's a lot of language, so I might have missed something).
 

surur

Well-known member
Aug 6, 2005
1,412
0
0
Visit site
Native iPhone applications have access to standard POSIX C APIs and other must-haves such as Berkeley Sockets for TCP/IP communication. All third-party code runs in a sandbox, meaning that the OS exerts tight control over its access to system calls, TCP ports, files and other resources. You can't write an application that dips into another app's files. You can't write a custom mail or Telnet server that listens on the standard TCP ports for these services, whether the iPhone OS is using those ports or not. Of course, there's no path from the sandbox to any device internals that you could use to flip the phone to a different wireless operator. The sandbox is tight enough that a hacker would have to punch through it to pillage or hobble your iPhone, and Apple has set it up so that every application can be traced back to its creator. Apple's method for registering and certifying applications will engender controversy, but users need to know that they can sample the riches of iPhone software in complete safety.

http://computerworld.co.nz/news.nsf/tech/32D9B512DE5B805ECC2574110076EDB5

Surur
 

cmaier

Well-known member
Jun 29, 2007
728
0
0
Visit site
I am guessing they mean that the jailbreak SSH stuff won't work (since you can't access any files outside the sandbox). I see nothing in any of the documentation that indicates that the TCP ports are sandboxed.
 

Trending Posts

Forum statistics

Threads
259,569
Messages
1,763,583
Members
441,181
Latest member
janinv23