View RSS Feed

Java Socket

Java Sockets

Rate this Entry
by , 01-08-2012 at 12:21 PM (2065 Views)
Sockets provided communication channeled and support inter process communication in Java. For example to communicate between two JVMs, sockets are used. Socket is an end point for communication. There are two types of sockets.

Connection less sockets
Connection oriented sockets

UDP protocol is used in the connection less sockets communication. Also they are referred as datagram communication protocol.

Each socket is indentified with following two numbers:

IP address
Port

There are 3 phases in the lifetime of a socket.

Open Socket
Read and Write to Socket
Close Socket

Name:  62.JPG
Views: 867
Size:  22.9 KB

Java Sockets

Submit "Java Sockets" to Facebook Submit "Java Sockets" to Digg Submit "Java Sockets" to del.icio.us Submit "Java Sockets" to StumbleUpon Submit "Java Sockets" to Google

Tags: java sockets Add / Edit Tags
Categories
Tutorial

Comments