Halaman

Senin, 24 Oktober 2011

The Mecanism

Client Server database is closely related to transactions and communications. Transactions and communication itself could be a sending, receiving, etc. data or information between the Client and Server.


Client usually finding, contact and need information while the server is usually preparing, informed and needed.

On the Client and Server we will find Port, the Port will form the Socket to connect the Client and Server. Port has ID which has a limit on the 1023.ID necessary to recognize between Client and Server.
 

Communication can be done by some of the client to the server. The trick is:

When a Client connected to Server, Server will create a thread. Then the server will transfer the newly connected client to the newly created thread. So that the server port will be empty and can be connected by another client. The Thread has the same function as Server. If the Client is no longer connected to the server then the thread will be automatically deleted.

That process will be repeated.

Tidak ada komentar:

Posting Komentar