Professional Documents
Culture Documents
Introduction To Networking and RMI
Introduction To Networking and RMI
Introduction To Networking and RMI
• 224.0.0.0 to 239.255.255.255
• Some address are reserved address like :
224.0.0.0
Example Multicast socket Server
Multicast Socket client
Output
• In order to use multiple clients, just create a
new Java project and copy-paste the code of
the client, but change the output to Socket
2 instead of Socket 1.
• You will see that when the server runs, the
messages will be sent to both clients, and
both clients will print the same results (except
for the socket number part).
Output for multiple client
Basic RPC Model
RPC
• RPC is a protocol that one program can used
to request a service from a program located in
another computer on a network without
having to understand the network details.
• A procedure call is also called as function call
or subroutine call.
• RPC uses the client server model.
RPC Operations
Elements of RPC
• Client
• Client Stub
• RPC runtime (RPC communication package )
• Server Stub
• Server