0

I've successfully created a server/client TCP connection, and now I want to stop the service advertising but DO NOT want the server to stop!, basically want to accept only 1 client.

EDIT: want to be able to add maxClients variable, so I can modify the amount of clients allowed.

tshepang
  • 12,111
  • 21
  • 91
  • 136

1 Answers1

0

Call the NSNetServices stop method after accepting maxClients

Paul Beusterien
  • 27,542
  • 6
  • 83
  • 139