server
Class SClient

java.lang.Object
  extended by server.SClient
All Implemented Interfaces:
java.lang.Runnable, SClientDescriptor

public class SClient
extends java.lang.Object
implements java.lang.Runnable, SClientDescriptor


Constructor Summary
SClient(java.net.Socket s, java.io.InputStream is, SClientManager cm, java.lang.String name, java.lang.String description, boolean passive, long shareAmount, int conPort, java.lang.String id)
           
 
Method Summary
 int getCommunicationPort()
           
 java.lang.String getDescription()
           
 java.lang.String getId()
           
 java.lang.String getIPAddress()
           
 java.lang.String getName()
           
 long getShareAmount()
           
 boolean isPassive()
           
 void requestATPConTo(SClientDescriptor connectTo)
           
 void run()
           
 void sendClientConnectedMessage(SClient c)
           
 void sendClientDisconnectedMsg(java.lang.String id)
           
 void sendToBridgeConReq(boolean asRequester, java.lang.String id, boolean isConnectionPurpose)
           
 void setDescription(java.lang.String description)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SClient

public SClient(java.net.Socket s,
               java.io.InputStream is,
               SClientManager cm,
               java.lang.String name,
               java.lang.String description,
               boolean passive,
               long shareAmount,
               int conPort,
               java.lang.String id)
        throws javax.xml.parsers.ParserConfigurationException,
               java.io.IOException
Throws:
javax.xml.parsers.ParserConfigurationException
java.io.IOException
Method Detail

isPassive

public boolean isPassive()
Specified by:
isPassive in interface SClientDescriptor

getCommunicationPort

public int getCommunicationPort()
Specified by:
getCommunicationPort in interface SClientDescriptor

getShareAmount

public long getShareAmount()

getName

public java.lang.String getName()
Specified by:
getName in interface SClientDescriptor

getDescription

public java.lang.String getDescription()

setDescription

public void setDescription(java.lang.String description)

getIPAddress

public java.lang.String getIPAddress()
Specified by:
getIPAddress in interface SClientDescriptor

requestATPConTo

public void requestATPConTo(SClientDescriptor connectTo)

sendToBridgeConReq

public void sendToBridgeConReq(boolean asRequester,
                               java.lang.String id,
                               boolean isConnectionPurpose)

run

public void run()
Specified by:
run in interface java.lang.Runnable

sendClientDisconnectedMsg

public void sendClientDisconnectedMsg(java.lang.String id)

sendClientConnectedMessage

public void sendClientConnectedMessage(SClient c)

getId

public java.lang.String getId()
Specified by:
getId in interface SClientDescriptor