[edit] Sockets
All the java programs communicate with a help of a programming abstraction which is called a socket. It basically denotes the end point of any network communication. The benefit of having a file abstraction is that all the details related to the storage of file, their location, how they are read and written is all hidden under this abstraction and this as a result gives the programmer a very easy and a simple functional programming interface.
Most applications do not care how data is actually transmitted in the network. Applications identify the address of the peer entity and then use the sockets interface to read and write data from and to ther peer. Sockets combine the implementation of network and transport layer protocols providing applications with a simple read/write interface. Java provides to types of sockets :
1. Server Sockets
2. Sockets
|