iOS VoIP待ち受けの仕組み

9,008 views
9,016 views

Published on

0 Comments
11 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
9,008
On SlideShare
0
From Embeds
0
Number of Embeds
374
Actions
Shares
0
Downloads
30
Comments
0
Likes
11
Embeds 0
No embeds

No notes for slide

iOS VoIP待ち受けの仕組み

  1. 1. [stream setProperty:NSStreamNetworkServiceTypeVoIP forKey:NSStreamNetworkServiceType];
  2. 2. [[UIApplication sharedApplication] setKeepAliveTimeout:600 handler:^{ // }];
  3. 3. [[UIApplication sharedApplication] setKeepAliveTimeout:600 handler:^{ // }];
  4. 4. [[UIApplication sharedApplication] setKeepAliveTimeout:600 handler:^{ // }];
  5. 5. int fd = socket(AF_INET, SOCK_STREAM, 0);NSInputStream* stream;CFStreamCreatePairWithSocket( kCFAllocatorDefault, fd, (CFReadStreamRef*)&stream, NULL);
  6. 6. int fd = socket(AF_INET, SOCK_STREAM, 0);NSInputStream* stream;CFStreamCreatePairWithSocket( kCFAllocatorDefault, fd, (CFReadStreamRef*)&stream, NULL);

×