i need to create a client/server application. the server must always be listening, the client(s) will send string data to it, the server will then store the data in a database.
with my experience with client/server applications, theyve always been unreliable for me. i mean that i could never get client/server communication to actually work, maybe because im behind a router. can someone show me how to make a reliable very simple client server app.
so the server must always be waiting, the client connects and sends a string to the server, once the server recieves this, it will store it in a database.
i actually need to send an array of strings (like first name, surname) etc, would i need to send the strings individually? or can i just send the whole array, then iterate through that array on the server side?