JAVA NETWORKING SOCKET OVERVIEW CONTENTS
SOCKET
OVERVIEW
![]() |
NETWORKING SOCKET OVERVIEW |
Socket is the most commonly used term in network programming.
Socket provides the way by which the computers can
communicate
using connection oriented or connection less communication.
A socket is basically an endpoint of a two-way communication
link between two programs running on the network.
The java.net.Socket
class represents the socket.
Two key classes are used to create the socket.
I.
ServerSocke
II.
Socket
The server socket can be created with the help of port
number.
The
socket object can be created with the help of hostname and port number.
I.
TCP Sockets : These are
denoted by streams
II.
UDP Sockets : These are denoted by datagrams
Post a Comment