配网错误输出
This commit is contained in:
parent
78c0096abb
commit
6075d88f59
|
|
@ -16101,7 +16101,7 @@
|
||||||
CODE_SIGN_IDENTITY = "iPhone Developer";
|
CODE_SIGN_IDENTITY = "iPhone Developer";
|
||||||
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
|
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
|
||||||
CODE_SIGN_STYLE = Automatic;
|
CODE_SIGN_STYLE = Automatic;
|
||||||
CURRENT_PROJECT_VERSION = 5;
|
CURRENT_PROJECT_VERSION = 6;
|
||||||
DEVELOPMENT_TEAM = WFX8GD5HFX;
|
DEVELOPMENT_TEAM = WFX8GD5HFX;
|
||||||
ENABLE_BITCODE = NO;
|
ENABLE_BITCODE = NO;
|
||||||
ENABLE_TESTABILITY = YES;
|
ENABLE_TESTABILITY = YES;
|
||||||
|
|
@ -16221,7 +16221,7 @@
|
||||||
CODE_SIGN_IDENTITY = "Apple Development";
|
CODE_SIGN_IDENTITY = "Apple Development";
|
||||||
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "Apple Development";
|
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "Apple Development";
|
||||||
CODE_SIGN_STYLE = Automatic;
|
CODE_SIGN_STYLE = Automatic;
|
||||||
CURRENT_PROJECT_VERSION = 5;
|
CURRENT_PROJECT_VERSION = 6;
|
||||||
DEVELOPMENT_TEAM = WFX8GD5HFX;
|
DEVELOPMENT_TEAM = WFX8GD5HFX;
|
||||||
ENABLE_BITCODE = NO;
|
ENABLE_BITCODE = NO;
|
||||||
ENABLE_TESTABILITY = YES;
|
ENABLE_TESTABILITY = YES;
|
||||||
|
|
|
||||||
|
|
@ -141,23 +141,29 @@
|
||||||
|
|
||||||
if (![_clientUdpSocket bindToPort:0 error:&error])
|
if (![_clientUdpSocket bindToPort:0 error:&error])
|
||||||
{
|
{
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
NSLog(@"airkiss socket error= %@",error.description);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (![_clientUdpSocket beginReceiving:&error])
|
if (![_clientUdpSocket beginReceiving:&error])
|
||||||
{
|
{
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
if(error)
|
||||||
{
|
{
|
||||||
NSLog(@"airkiss socket error= %@",error.description);
|
NSLog(@"airkiss socket error= %@",error.description);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
- (void)setupServerUdpSocket {
|
- (void)setupServerUdpSocket {
|
||||||
if (!_serverUdpSocket) {
|
if (!_serverUdpSocket) {
|
||||||
_serverUdpSocket = [[GCDAsyncUdpSocket alloc] initWithDelegate:self delegateQueue:dispatch_get_main_queue()];
|
_serverUdpSocket = [[GCDAsyncUdpSocket alloc] initWithDelegate:self delegateQueue:dispatch_get_main_queue()];
|
||||||
|
|
@ -168,21 +174,28 @@
|
||||||
|
|
||||||
if (![_serverUdpSocket bindToPort:kAirKiss_Port error:&error])
|
if (![_serverUdpSocket bindToPort:kAirKiss_Port error:&error])
|
||||||
{
|
{
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
NSLog(@"airkiss socket error= %@",error.description);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (![_serverUdpSocket beginReceiving:&error])
|
if (![_serverUdpSocket beginReceiving:&error])
|
||||||
{
|
{
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
NSLog(@"airkiss socket error= %@",error.description);
|
|
||||||
}
|
}
|
||||||
|
if(error)
|
||||||
|
{
|
||||||
|
NSLog(@"airkiss socket error= %@",error.description);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#pragma mark - Event Response
|
#pragma mark - Event Response
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue