Results 1 to 5 of 5

Thread: Don't drop TCP connection when I...

Hybrid View

  1. #1
    The only time connection failure ever poses more than a extremely minor inconvenience is went I am typing large mails, so I just type them in notes and copy/paste them over, problem solved. : D

  2. #2
    Quote Originally Posted by Balian View Post
    The only time connection failure ever poses more than a extremely minor inconvenience is went I am typing large mails, so I just type them in notes and copy/paste them over, problem solved. : D
    Oh yeah, that happened to me the other day. Was super annoying...

    But can't you just register the app as a VoIP application and use the setKeepAliveTimeout method to maintain your TCP connection for up to 10 minutes? http://developer.apple.com/library/i...mmingguide.pdf

    Or you could even use the beginBackgroundTaskWithExpirationHandler method to ensure the connection is not dropped.

    Something like this?

    Code:
    UIBackgroundTaskIdentifier hangTight;
    hangTight = [[UIApplicationsharedApplication]
              beginBackgroundTaskWithExpirationHandler:^{
                  /* if you exceed 10 minutes */
              }];
    [[UIApplication sharedApplication] endBackgroundTask:hangTight];
    --
    Noah

  3. #3
    Well? Have you looked into this tactic?
    --
    Noah

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •