Sockets Codec in java is example
The sockets are programs that facilitate to us and realize the connection between users of algun program d chat or algun computing porel which realizen the transmission of information.
This one is a program on sockets that was helping us to demonstrate the managing message between a servant and a client and pieces of code appear, this code is a part of a project of a young person of a web page.
This is code the servidor.
sc = new ServerSocket(PUERTO );/* crea socket servidor que escuchara en puerto 5000*/
so=new Socket();
System.out.println("Esperando una conexión:");

Sockets