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

First time : First time post #2

Open
ashokpappu opened this issue Jan 26, 2020 · 2 comments
Open

First time : First time post #2

ashokpappu opened this issue Jan 26, 2020 · 2 comments

Comments

@ashokpappu
Copy link

Can we implement cross platform low level TCP.IP sockets in java

@PrajjawalBanati
Copy link
Owner

Implementing TCP,IP sockets in java is possible by using the ServerSocket and Socket class. TCP protocol uses sockets for programming in which we make a ServerSocket object that acts as a server and a socket object which takes the port number and IP address as two arguments so to establish a connection between them. All the exchange of messages will take place through DataInputStream object and DataOutputStream object.

One way Communication using TCP: https://github.com/PrajjawalBanati/Networking_In_Java/tree/master/9.%20Communication%20using%20TCP

Two way Communication using TCP:-
https://github.com/PrajjawalBanati/Networking_In_Java/tree/master/10.%20Two%20Way%20Communication%20using%20TCP

@PrajjawalBanati
Copy link
Owner

They both are different cases to implement low level TCP sockets in java

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants