Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sevdanurgenc/java-socket-programming

Socket programming is a way of connecting two nodes on a network to communicate with each other.
https://github.com/sevdanurgenc/java-socket-programming

java socket-communication socket-io socket-programming

Last synced: 9 days ago
JSON representation

Socket programming is a way of connecting two nodes on a network to communicate with each other.

Awesome Lists containing this project

README

        

# Java-Socket-Programming
## Socket programming is a way of connecting two nodes on a network to communicate with each other. One socket(node) listens on a particular port at an IP, while other socket reaches out to the other to form a connection. Server forms the listener socket while client reaches out to the server.

![image](https://user-images.githubusercontent.com/5441882/130860374-6177049a-1ed6-4730-809f-96e070dcf5db.png)

## First, the server.java file is run. The console screen shows that the server is connected.

![image](https://user-images.githubusercontent.com/5441882/130859245-f9218a68-ee5a-4700-a6c5-d85d8d94d0a9.png)

## Then the client.java file is run. The console screen on the left shows that the client is connected. The console screen on the right belongs to the server.
## We send the string value entered by the client to the server. After the string value received by the server is converted to uppercase letters, it sends a response to the client.

![image](https://user-images.githubusercontent.com/5441882/130859335-400f1430-654e-43b9-8d66-7cf251c6eae6.png)

## When "end" is entered, the connection with the server is interrupted.

![image](https://user-images.githubusercontent.com/5441882/130859375-07bac113-7e6e-484a-8e17-2a143b971706.png)