Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DOC: Improvements #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Networking means communication between two or more devices connected in a network. Networking allows sharing of files, data among a group
of users. Java allows user to develop a complete system to communicate between certain users.

## Pre-Requistes
## Pre-Requisites
- Difference between LAN-MAN-WAN.
- What is WWW(World Wide Web)?
- IP Address Concept
Expand All @@ -16,7 +16,7 @@ of users. Java allows user to develop a complete system to communicate between c
## Java Networking
For networking in Java firstly we should know that how many sockets java allows us to use ? Java allows us to use two sockets:
- Stream Sockets
> Stream Sockets use TCP protocol to create a communication between two systems. Here data flows in the form of Continous Streams while the connection is in place.
> Stream Sockets use TCP protocol to create a communication between two systems. Here data flows in the form of Continuous Streams while the connection is in place.

- Datagram Sockets
> Datagram Sockets use UDP protocol in which the packets of information are shared between two systems. It is Connection-less service protocol.
Expand All @@ -38,7 +38,7 @@ of users. Java allows user to develop a complete system to communicate between c
## Communication Using UDP

### One-Way Communication
- First Run the **Server.java** program so that server gets ready to recieve the messages then run the **Client.java** program.
- First Run the **Server.java** program so that server gets ready to receive the messages then run the **Client.java** program.
- #### [Server.java](https://github.com/PrajjawalBanati/Networking_In_Java/blob/master/6.%20Communication%20Using%20UDP/UDPServer.java)

![img0](https://github.com/PrajjawalBanati/Networking_In_Java/blob/master/Images/UDP_OneWayServer.JPG)
Expand All @@ -48,7 +48,7 @@ of users. Java allows user to develop a complete system to communicate between c
![img1](https://github.com/PrajjawalBanati/Networking_In_Java/blob/master/Images/UDP_OneWayClient.JPG)

### Two-Way Communication
- First Run the **Server.java** program so that server gets ready to recieve the messages then run the **Client.java** program.
- First Run the **Server.java** program so that server gets ready to receive the messages then run the **Client.java** program.
- #### [Server.java](https://github.com/PrajjawalBanati/Networking_In_Java/blob/master/7.%20Two%20Way%20Communication%20using%20UDP/UDPServer.java)

![img0](https://github.com/PrajjawalBanati/Networking_In_Java/blob/master/Images/UDP_TwoWayServer.JPG)
Expand All @@ -60,7 +60,7 @@ of users. Java allows user to develop a complete system to communicate between c
## Communication Using TCP

### One-Way Communication
- First Run the **Server.java** program so that server gets ready to recieve the messages then run the **Client.java** program.
- First Run the **Server.java** program so that server gets ready to receive the messages then run the **Client.java** program.
- #### [Server.java](https://github.com/PrajjawalBanati/Networking_In_Java/blob/master/9.%20Communication%20using%20TCP/TcpServer.java)

![img0](https://github.com/PrajjawalBanati/Networking_In_Java/blob/master/Images/TCP_OneWayServer.JPG)
Expand All @@ -70,7 +70,7 @@ of users. Java allows user to develop a complete system to communicate between c
![img1](https://github.com/PrajjawalBanati/Networking_In_Java/blob/master/Images/TCP_OneWayClient.JPG)

### Two-Way Communication
- First Run the **Server.java** program so that server gets ready to recieve the messages then run the **Client.java** program.
- First Run the **Server.java** program so that server gets ready to receive the messages then run the **Client.java** program.
- #### [Server.java](https://github.com/PrajjawalBanati/Networking_In_Java/blob/master/10.%20Two%20Way%20Communication%20using%20TCP/TcpServer.java)

![img0](https://github.com/PrajjawalBanati/Networking_In_Java/blob/master/Images/TCP_TwoWayServer.JPG)
Expand Down