Programming Tutorials Browser Tutorials Articles Struts Tutorials Hibernate Tutorials

  Tutorial: Introduction to the Peer-to-Peer Sockets Project

Introduction to the Peer-to-Peer Sockets Project The Peer-to-Peer (P2P) Sockets Project reimplements Java\'s standard Socket, ServerSocket, and InetAddress classes to work on the JXTA peer-to-peer network, rather than on the standard TCP/IP network. It a

Tutorial Details:

JXTA is an open source project that creates a peer-to-peer overlay network that sits on top of TCP/IP. Every peer on the network is given an IP-address-like number, even if they are behind a firewall or don\'t have a stable IP address. Super-peers on the JXTA network run application-level routers that store special information such as how to reach peers, how to join subgroups of peers, and what content peers are making available. JXTA application-level relays can proxy requests between peers that would not normally be able to communicate due to firewalls or NAT devices. Peers organize themselves into peer groups, which scope all search requests and act as natural security containers. Any peer can publish and create a peer group in a decentralized way, and other peers can search for and discover these peer groups using other super-peers. Peers communicate using pipes, which are very similar to Unix pipes. Pipes abstract the exact way in which two peers communicate, allowing peers to communicate using other peers as intermediaries if they normally would not be able to communicate due to network partitioning.

JXTA is an extremely powerful framework. However, it is not an easy framework to learn, and porting existing software to work on JXTA is not for the faint-of-heart. P2P Sockets effectively hides JXTA by creating a thin illusion that the peer-to-peer network is actually a standard TCP/IP network. If peers wish to become servers, they simply create a P2P server socket with the domain name they want, and the port other peers should use to contact them. P2P clients open socket connections to hosts that are running services on given ports. Hosts can be resolved either by domain name, such as www.nike.laborpolicy, or by IP address, such as 44.22.33.22. Behind the scenes, these resolve to JXTA primitives, rather than being resolved through DNS or TCP/IP. For example, the host name www.nike.laborpolicy is actually the NAME field of a JXTA peer group advertisement. P2P sockets and server sockets work exactly the same as normal TCP/IP sockets and server sockets. For the technically inclined and those who already understand JXTA, a table exists illustrating how standard TCP/IP concepts such as host name, IP address, etc., map to their JXTA equivalents.


 

Read Tutorial at: Click here to view the tutorial

Rate Tutorial:
Introduction to the Peer-to-Peer Sockets Project

View Tutorial:
Introduction to the Peer-to-Peer Sockets Project

Related Tutorials:

Messaging helps move Java into the enterprise - JavaWorld January 1999
Messaging helps move Java into the enterprise - JavaWorld January 1999
 
Multicast the chatwaves - JavaWorld October 1999
Multicast the chatwaves - JavaWorld October 1999
 
JNDI overview, Part 2: An introduction to directory services - JavaWorld February 2000
JNDI overview, Part 2: An introduction to directory services - JavaWorld February 2000
 
The Gnutella file-sharing network and Java - JavaWorld October 2000
The Gnutella file-sharing network and Java - JavaWorld October 2000
 
Sockets programming in Java: A tutorial - JavaWorld December 1996
Sockets programming in Java: A tutorial - JavaWorld December 1996
 
Build secure network applications with SSL and the JSSE API - JavaWorld May 2001
Build secure network applications with SSL and the JSSE API - JavaWorld May 2001
 
The Jxta solution to P2P
The Jxta solution to P2P
 
Master the Jxta shell, Part 1
Master the Jxta shell, Part 1
 
Jabber away with instant messaging
Jabber away with instant messaging
 
SMS-Powered Applications
SMS-Powered Applications Every business tries to get as close as it can to its customers. The aim is to keep customers up to date with company news, products or service updates, relevant information about their accounts, or to send them notifications for
 
Java SMPP API Homepage
Java SMPP API SMPP (Short Message Peer to Peer) is a protocol used by short message entities (SMEs) to communicate with Short Message Service Centres (SMSC, or just SC) for sending an receiving short messages.
 
Asynchronous IO for Java
What is Asynchronous IO for Java? Asynchronous IO for JavaTM (AIO4J) is a package that provides the capability to perform input and output (IO) on sockets and files asynchronously -- that is, where the Java application can request the operation but can
 
JXTA Yields an Application for P2P Backups
Well, I keep saying that JXTAâ„¢ is where business needs to go to make a buck. Companies are indeed listening. 312 Inc. has just released a new JXTA product called LeanOnMe. LeanOnMe is a Peer-to-Peer off site backup tool.
 
Networking our whiteboard with servlets.
Find out how to easily replace the RMI and sockets networking layers with servlets.
 
JavaTM Secure Socket Extension (JSSE)
The JavaTM Secure Socket Extension (JSSE) is a Java package that enables secure Internet communications. It implements a Java version of SSL (Secure Sockets Layer) and TLS (Transport Layer Security) protocols and includes functionality for data encryption
 
JavaServer Pages Technology - Documentation
Sun's tutorial for Java Server Pages that provide a good introduction to design web pages with JSP.
 
Use the Element Construction Set to create formatted logs.
The Jakarta Element Construction Set (ECS) is an open source project for creating markup language documents using the Java language and an object-oriented approach. Can be used to format logs into well-formatted HTML files
 
10 Minutes Guide to Ant
10 Minutes Guide to Ant 10 Minutes Guide to Ant Previous Tutorial Index Next Introduction Well for the next 10 minutes get ready to devote to the ant guide. This will make some sence to the ant. Ant is a free tool under GNU Licence and is
 
We are providing Downloadable Version of Dyne:bolic 1.3 Linux
We are providing Downloadable Version of Dyne:bolic 1.3 Linux Dyne:bolic 1.3 Linux Now Available Dyne:bolic 1.3 CD We are providing the free downloadable version of Dyne:bolic, which is distributed under GNU public license. You have to pay only
 
Submit a Request for a Project to be done
Submit a Request for a Project to be done Fill this form to Submit a Request for a Project to be done. User's Personal Details Name : Address: Email: Project Name: Project Description Language to be used: Delivery Date:
 
Site navigation
 

 

Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.

Copyright © 2006. All rights reserved.