1. surur's Avatar
    I just read somewhere that the official SDK also prohibits servers listening on open sockets (like FTP or telnet servers).

    Is this true?

    Surur
    03-24-2008 12:16 PM
  2. cmaier's Avatar
    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).
    03-24-2008 02:41 PM
  3. surur's Avatar
    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/...2574110076EDB5

    Surur
    03-24-2008 02:47 PM
  4. cmaier's Avatar
    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.
    03-24-2008 03:24 PM
LINK TO POST COPIED TO CLIPBOARD