Posts

Showing posts with the label server

Simplified : Client_Server - Socket Programming in Java

Image
Client_Server - Socket Programming in Java Client -server communication At a basic level, network-based systems consist of a server , client , and a media for communication. A computer running a program that makes a request for services is called client  machine. A computer running a program that offers requested services from one or more clients is called  server machine. What are Sockets? In Client-Server architecture , you have two processes (running client-Server programs) that want to communicate with each other. For that, they have to establish a communication link between themselves. There is a network available,they just need to connect to this network , for this they use sockets. A socket is one endpoint of a two-way communication link between two programs running on the network. An endpoint is a combination of an IP address and a port number . Every TCP connection can be uniquely identified by its two endpoints. That...

Basic Understanding of RMI : JaVa - is not MaVa

Image
The Remote Method Invocation(RMI) is an API that provides a mechanism to create distributed application in Java. RMI allows a Java object to invoke method on an object running on another machine. RMI provides remote communication between java programs. ---Watch the Video to understand "Why we need RMI ?"---- Concept of RMI application A RMI application can be divided into two parts, 1.  Client   program 2.  Server  program. A  Server  program creates some remote object, make their references available for the client to invoke method on it. A  Client  program make request for remote objects on server and invoke method on them.  Stub  and  Skeleton  are two important objects used for communication with remote object. Stub and Skeleton Stub  acts as a gateway for Client program. It resides on Client side and communicates with  Skeleton  object. It establ...