server
Class SClient
java.lang.Object
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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