answersLogoWhite

0


Best Answer

we use sockets for client server model..

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Which classes are used in java to create client server model?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

Explain the client-server model on the Internet In which layer of the TCPIP protocol suite is the model implemented?

The Client-Server ModelThe most common model for distributing a system is the client-server model. The model is fairly simple to explain and use.The name of the model is quite descriptive. In your distributed system you have one or more servers. These servers provide services to other parts of the system, called clients. When a server is started it first opens up a particular port through which clients can access it. It then sits down and waits until somebody (the client) attempts to connect to it. When that happens, the server and client exchange some messages and ultimately of the two close the connection. This connection takes place using so-called sockets.*The Server*The simplest version of such a server is non-threaded. That means that multiple connections are handled sequentially, in other words: clients have to queue up and they are handled one by one. That's fine if connections last only very short and if there are not too many clients connecting at the same time, however if you have many clients connecting at the same time or long-lasting connections you have to handle connections in parallel. You can handle multiple connections in parallel using threads. Each time a connection is established a new thread is created and the connection is handled by that new thread. The server thread then continues accepting new connections. Because creating threads is an expensive process (in terms of CPU cycles) threads are usually kept in a "pool". When a thread finished its job, it is kept alive until a new request has arrived it can handle.*The Client*For the client to connect it has to know the server's IP or hostname and the port to connect to. Once the connection is established the client and server can exchange messages. Depending on the distributed system a client may connect to multiple servers. One server to access the database, one for file services, another for e-mail, for example.RegardsDipaksiliguridipak_slg@rediffmail.com


What is the difference between inheritance relationship and client-server relationship in programming?

These two concepts are not even remotely related, so listing the differences would be pointless. Far easier to simply explain what they are. The client-server model is typically used in networking where one computer acts as the server and all computers that connect to it are known as the clients. The server does all the actual work, serving information to the clients and collecting information from the clients. The software is therefore divided into two major components known as the server and the client. Inheritance is typically found in object-oriented programming, where one class of object derives from another class of object known as a base class.


Discuss the service primitives in a client server model?

A service is formally specified by a set of primitives or operations available to the user to access the service. These primitives tell the service to perform some action or report an action taken by the peer entity. The primitives for the connection oriented service are given in following table. Primitives Meaning Listen Block waiting for an incoming connection Connect Establish a connection with waiting peer Receive Block waiting for an incoming message Send Send a message to the peer Disconnect Terminate a connection Table: - Service primitives for a connection oriented service Communication in a simple client server model using the above service primitives is illustrated in figure [A]. First the server executes LISTEN to indicate that it is ready to accept incoming connections. The client executes CONNECT (1) to establish the connection with the server. The server now unblocks the listener and sends back an acknowledgement (2). Thus the connection is established. Figure [A]:- Simple client server model on a connection oriented network The next step for a server is to execute RECEIVE (3) to prepare to accept the first request. The arrival of the request packet unblocks the server so that it can process the request. After it has done the work it uses SEND (4) to answer to the client. After all the data transfer is done it can use DISCONNECT (5) for suspending the client. When the server gets this packet, it also issues a DISCONNECT (6) and when it reaches the client, the client process is releases and the connection is broken. In the process packets may get lost, timings may be wrong; many other complex issues may arise. The Relationship of Services to Protocols Figure [B]: Relationship between the service and protocols A service is a set of primitives that a layer provides to the layer above it. The service defines what operation the layer is prepared to perform on behalf of its users. It says nothing about the implementation of these operations. A protocol is a set of rules governing the format and meaning of the packets, or messages that are exchanged by the peer entities within a layer. Figure [B] illustrates the relationship of services to protocols. Entities use protocols to implement their service primitives. Protocols relate to the packets sent between entities.


Different activities in the 6 phases in classical waterfall model?

1) Identify client requirements 2) Identify system requirements 3) Create an overall design 4) Create a detailed design 5) Develop product 6) Test product


Describe the intrinsic controls of asp net?

In ASP.NET there are two types of controls - HTML server controls and ASP.NET server controls. The HTML ones are known as Intrinsic controls.A HTML Server Control has similar abstraction with its corresponding HTML tag and offers no abstraction.ASP .NET Server Controls have higher level of abstraction. An output of an ASP .NET server control can be the result of many HTML tags that combine together to produce that control and its events.The HTML Server Controls follow the HTML-centric object model.ASP .NET Server Controls have an object model different from the traditional HTML and even provide a set of properties and methods that can change the outlook and behavior of the controls.The HTML Server Controls have no mechanism of identifying the capabilities of the client browser accessing the current page.ASP .NET Server Controls can however detect the target browser's capabilities and render themselves accordingly.For moreInfo refer to related links.

Related questions

What does Transparency of Location mean in Client Server model?

the server is a process that can resite of same machine as a client or on a different machine the client software usually the location of the server from client by redirecting the service.....(upload by vams)


A computer on a network that requests resources from a server?

The computer on a network that requests resources from the server is called the client. The server may also be used to implement administrative security for the client computers.


What are the client server model and Give 3 examples of services on Linux systems that take advantage of this model?

FTP, NFS, DNS, email, and HTTP (the web browsing protocol) all rely on client server model.


What is clien or server mean?

Client/server describes the relationship between two computer programs in which one program, the client, makes a service request from another program, the server, which fulfills the request. Although the client/server idea can be used by programs within a single computer, it is a more important idea in a network. In a network, the client/server model provides a convenient way to interconnect programs that are distributed efficiently across different locations. Computer transactions using the client/server model are very common.


The majority of Internet communications follows the model of network communications?

Client / Server


How does a communications server work?

A communications server works by connecting the server and the client through streaming. A good communications server should have a powerful programming model.


How does a commune work?

A communications server works by connecting the server and the client through streaming. A good communications server should have a powerful programming model.


Which computer network model allows each computer to act as a client or server?

The Peer-to-Peer networking model.


Explain the different between peer to peer and client server configuration?

In Peer to peer the machines work as a workgroup machines and can access each other and they process themselves but in client server model all the requests of clients are sent to server it processes the request and send the result to client


Example of client server?

The example of client server model is that to check your bank account from your computer, a client program in your computer forwards your request ro a server program at the bank. this program may in turn forward the request to its own client program that sends a request to a database server at another bank computer to retrieve your account balance.The balance is returned back to the bank data client, which in turn serves it back to the client in your personal computer,which displays the information for you.


The is often referred to as the front end of the clientserver model and the is referred to as the back end?

Client Server


What is server-client network?

Client/server describes the relationship between two computer programs in which one program, the client, makes a service request from another program, the server, which fulfills the request. Although the client/server idea can be used by programs within a single computer, it is a more important idea in a network. In a network, the client/server model provides a convenient way to interconnect programs that are distributed efficiently across different locations. Computer transactions using the client/server model are very common. For example, to check your bank account from your computer, a client program in your computer forwards your request to a server program at the bank. That program may in turn forward the request to its own client program that sends a request to a database server at another bank computer to retrieve your account balance. The balance is returned back to the bank data client, which in turn serves it back to the client in your personal computer, which displays the information for you. If you more information,follow this link:http://www.iyogibusiness.com/