I want to create an app that listen to a custom port all the time & when the client try to connect through that port I want to handle that event.
I searched a lot in the internet about it but I couldn't get any good resources for my requirement.
I want to know if I build that app somehow, will Apple Store approve my app? because the app always listen to a port. They might think it's a security issue.
Can anyone give me an answer to that question, as well as please provide me relevant resources for that.
Thanks
Apple has some examples, both with Core Foundation and POSIX sockets in the network programming guide - but there is still a lot of work to be done beyond the code provided.
Because the use cases for mobile devices are typically client-style rather than server-style there isn't the same degree of development and examples available.
If the "other end" of your connection is also iOS, perhaps the multi peer connectivity framework could be an option.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With