Hello guys,
I start to learn&code some basic small client/server console applications in java -especially in android- and also I try to learn Threads, in fact, I managed to connect 2 different machine by uploading different projects to these machines, for example one project only consists of client and the other project consists of server application, now I want to upload one project to different two machines and connect these two machines. Firstly, I start to learn topic about Threads and take looking some basic code examples about Threads and now I want to combine with client server application but I can not control the behaviour of my -one- applicaton whether server or client, I do hundreds of searching with google but I do not exactly how I should start, to illustrate that here,
- I want to connect machine A ^^ machine B
-to connect them I upload ONE project
-this ONE project must be act as both Server and Client for acting I want to use Threads, one for Client; one for Server and maybe additional Thread to control server and client threads
In general my observation is something like that,
Thanks for your interests, pls advise to me