发送端,不用绑定端口
This commit is contained in:
@@ -138,8 +138,10 @@
|
||||
_clientUdpSocket = [[GCDAsyncUdpSocket alloc] initWithDelegate:self delegateQueue:dispatch_get_main_queue()];
|
||||
[_clientUdpSocket enableBroadcast:YES error:&error];
|
||||
}
|
||||
|
||||
if (![_clientUdpSocket bindToPort:0 error:&error])
|
||||
|
||||
BOOL bind = YES;
|
||||
// bind =[_clientUdpSocket bindToPort:0 error:&error]
|
||||
if (!bind)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user