Java - Networking (Socket Programming)
by, 04-25-2012 at 10:21 PM (621 Views)
Networking programming means to write those programs which could be executed across various devices, where devices are connected via a network.
J2SE APIs has java.net package which consist of interfaces and classes collection which give communication details of low level, that allow to write the programs which keeps its focus to sort out the problems.
For 2 network protocols, support is provided by the java.net package:
- TCP: Transmission Control Protocol allows reliable communication b/w 2 applications. Typically it is used at the Internet Protocol, referred as TCP/IP.
- UDP: User Datagram Protocol is a “connection-less” protocol which permits data packets to get transmitted to the applications.