Sample Java Peer to Peer Chat Application

Download Solution: Click to Download Solution
Solution File Name: PeerToPeerClass.doc
Unzip Password: prestobear.com

Problem:
Sample Java peer to peer chat application


1. PeerOne.java
package com.chat.peer;

import java.io.*;
import java.net.*;
import java.lang.*;

/*
 * In this P2P chat, the first peer is play the server role and the second peer play as client role
 */

public class PeerOne {

}

class RecieveFromClientThread implements Runnable {

}
//end class RecieveFromClientThread

class SendToClientThread implements Runnable {

}//end class SendToClientThread

2. PeerTwo.java
package com.chat.peer;

import java.io.*;
import java.net.*;

public class PeerTwo {

}

class RecieveThread implements Runnable {

}
//end class recievethread

class SendThread implements Runnable {

}//end class

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.