Like This Site? 
 
RSS Feed Follow Us 

on Twitter! Be Our Fan!

Java Networking : Complete Tutorial

Share this post!
 Vote this!

Java's socket-based communications allow applications to view networking as if it were file I/O, a program can read and write to a socket as if it were a file. Java provides stream (TCP) and datagram sockets (UDP).

Stream sockets   : a process establishes a connection to another process, while the connection is in place data flows between the processes in continuous streams. Stream sockets are said to provide a connection-oriented service (TCP).

Datagram sockets  : individual packets of information are transmitted, these packets are sent via a connectionless service, this means that packets can be lost, duplicated, out of order when they arrive at the destination. This means that extra programming is required at the client end to sort out these problems.  more...

0 comments:

Post a Comment