#78 Java Socket Programming | Networking In Java | Datagram Packet | Datagram Socket | URL In Java

Published: 17 May 2021
on channel: AndroJava Tech4U
329
7

┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉
For Online Live Training Contact me directly on :-
◈ What's App/Call/telegram- 9310683500.
┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉

┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉
Donation (Support Stream through) :-
◈ Paytm/Gpay/PhonePe - 9310683500.
┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉┉
Java Socket programming is used for communication between the applications running on different JRE.
Java Socket programming can be connection-oriented or connection-less.
Socket and ServerSocket classes are used for connection-oriented socket programming and DatagramSocket and DatagramPacket classes are used for connection-less socket programming.

The client in socket programming must know two information:
IP Address of Server, and
Port number.
Here, we are going to make one-way client and server communication. In this application, client sends a message to the server, server reads the message and prints it. Here, two classes are being used: Socket and ServerSocket. The Socket class is used to communicate client and server. Through this class, we can read and write message. The ServerSocket class is used at server-side. The accept() method of ServerSocket class blocks the console until the client is connected. After the successful connection of client, it returns the instance of Socket at server-side.

Stay tuned with me for more upcoming Videos,
don't forget to subscribe my YouTube Channel and share your valuable comments in Comment section down below, i'll be happy t o help you all, your Surya ☺

Connect on Socials:-

Facebook:-   / androjavatec.  .
Twitter:-   / androjavatech4u  
Google Plus:- https://plus.google.com/u/0/+AndroJav...
LinkedIn:-   / androjava.  .

#Socket #ServerSocket #Networking

java Basic Java Tutorial for beginners
Basic Java Programming for beginners


On this page of the site you can watch the video online #78 Java Socket Programming | Networking In Java | Datagram Packet | Datagram Socket | URL In Java with a duration of hours minute second in good quality, which was uploaded by the user AndroJava Tech4U 17 May 2021, share the link with friends and acquaintances, this video has already been watched 329 times on youtube and it was liked by 7 viewers. Enjoy your viewing!