0

I'm using GCDAsyncUdpSocket for my project, I can bind a port this way, (Server part)

[udpSocket bindToPort:45678 error:&error];

But I don't want to give a static port number for this. How to get available free ports for UDP communication ? I am going to publish it as a service using Bonjour ? Am I on the right track ?

Vineet Singh
  • 4,009
  • 1
  • 28
  • 39
Thilina Chamath Hewagama
  • 9,039
  • 3
  • 32
  • 45

1 Answers1

0

Take a look at this well-done tutorial -- I did and have a product on the store that uses Bonjour because of this tutorial!

Tutorial: Networking and Bonjour on iPhone

tobinjim
  • 1,862
  • 2
  • 19
  • 31