I have a TCP server that listens to incoming commands and communicates with the database. How can I send to him requests from ios application? I work with swift 2 .
In other words, you need to implement the following: The user enters the username and password, trying to log into your account. At this time, a request is sent to the server - "Check if there is such a user in the database". He does this, and sends the answer back to the ios app.
I just can not figure out how to do this. As far as I understand, I need to work with streams, but I did not find anything worthwhile about it on ios .