NSString * host = @"192.168.2.151";

int port = 35000;

asyncSocket = [[AsyncSocket alloc] initWithDelegate:self];

NSError *err = nil;

if(![asyncSocket connectToHost:host on:port error:&err])

{

  NSLog(@"Error: %@", err);

}

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-08-18
  • 2022-12-23
  • 2022-02-18
  • 2022-01-02
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-07-25
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-22
相关资源
相似解决方案