HI, everyone! I am student and just trying to understand kotlin programming language. Is there someone who can help me with app connection to TCP server using IP and port? I need to connect to the server and retrieve data from there. I am ready reading if someone has great material. I never have done this before, so I dont know from where to start.
how is that kotlin specific?
the question is a bit large...
05/05/2019, 9:18 AM
This is a task - create android aplication using Kotlin programming language. Server side already has developed. I have IP and port number, and I need to create TCP connection. When connect to server, app need to send command "AUTHORIZE,
command "AUTHORIZE<email> and server will respond with "USERLIST<id>, <name> ..."
What exactly is not working? Please read this for future help requests:
05/05/2019, 2:35 PM
In code above error was due to using main thread. So I created AsyncTask for socket. And now I dont understand what I have done incorrect- Cannot evaluate android.system.StructAddrinfo.toString. Do I declare ip address in socket incorrect?