I'm looking for a way to do the following:
create a simple server/client
the server will be running as a service (that is simple)
the client will send the server "commands" (it can be text,number or array/list)
the server receive it then run a method and send the results of the method back to the client (as text, number or array/list)
the server will have few methods and will run any method based on the "command" that it receives from the client!
now this is new task for me I never worked with Server/client "thing" and i'm new to programming (I used to do some things as a hubby) but I think i'm a fast learner ;-)
I found a nice example on http://www.c-sharpcorner.com/uploadfile/sthangaraju/tcpclientserverst11182005014316am/tcpclientserverst.aspx
1- is it good to use it as a based to build what I want? if not which approach I should take?
2- how to make the server keep running not exit after the client send the text?