client.net.commun
Class NormalClient
java.lang.Object
client.net.commun.AbstractClient
client.net.commun.AbstractNormalClient
client.net.commun.NormalClient
- All Implemented Interfaces:
- NormalClientDescriptor, java.lang.Runnable
public class NormalClient
- extends AbstractNormalClient
- implements java.lang.Runnable, NormalClientDescriptor
Constructor Summary |
NormalClient(ClientManager cm,
java.net.Socket s,
java.io.OutputStream os,
java.io.InputStream is,
Profile p)
|
NormalClient(ClientManager cm,
java.net.Socket s,
java.io.OutputStream os,
java.io.InputStream is,
Profile p,
ServerClient c,
int comport)
Constructor for ATP connection |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FILES_INFO_PROVIDED_STATE
public static final java.lang.String FILES_INFO_PROVIDED_STATE
- See Also:
- Constant Field Values
NormalClient
public NormalClient(ClientManager cm,
java.net.Socket s,
java.io.OutputStream os,
java.io.InputStream is,
Profile p,
ServerClient c,
int comport)
throws java.io.IOException
- Constructor for ATP connection
- Throws:
java.io.IOException
NormalClient
public NormalClient(ClientManager cm,
java.net.Socket s,
java.io.OutputStream os,
java.io.InputStream is,
Profile p)
throws java.io.IOException
- Throws:
java.io.IOException
getMessage
protected java.lang.String getMessage(int type)
- Overrides:
getMessage
in class AbstractNormalClient
requestATPConnectionForTransfer
public void requestATPConnectionForTransfer()
run
public void run()
- Specified by:
run
in interface java.lang.Runnable
getSharedFiles
public java.util.ArrayList<ClientFileDescriptor> getSharedFiles()
getProfileConnectedWith
public Profile getProfileConnectedWith()
- Specified by:
getProfileConnectedWith
in interface NormalClientDescriptor
disconnect
public void disconnect()
getConAssistantServer
public ServerClient getConAssistantServer()
- Description copied from interface:
NormalClientDescriptor
- returns null if the assistant dont exists
- Specified by:
getConAssistantServer
in interface NormalClientDescriptor
getCommunicationPort
public int getCommunicationPort()
- Specified by:
getCommunicationPort
in interface NormalClientDescriptor
- Overrides:
getCommunicationPort
in class AbstractClient