servlet
Class Connection

java.lang.Object
  extended by servlet.Connection

public class Connection
extends java.lang.Object

This class keeps information about the open communications.

Author:
Alessandro Franchini

Field Summary
 User name
           
 PeerInterface pi
           
 PeerCommunication ti
           
 
Constructor Summary
Connection(User name, PeerCommunication ti, PeerInterface pi)
          The constructor
 
Method Summary
 void closeConnection()
          This method closes the connection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

public User name

pi

public PeerInterface pi

ti

public PeerCommunication ti
Constructor Detail

Connection

public Connection(User name,
                  PeerCommunication ti,
                  PeerInterface pi)
The constructor

Parameters:
name - the user
ti - the communications thread
pi - the graphic interface
Method Detail

closeConnection

public void closeConnection()
This method closes the connection.