Class Communication
java.lang.Object
|
+----Communication
- public class Communication
- extends Object
The Communication class permits communication of sockets
-
Client
- The socket used for communications with the client.
-
Data
- The socket used for data transmission with the client.
-
FTP_NEWLINE
-
-
Log
-
-
Communication()
-
-
Communication(Socket)
-
-
GetCommand()
- Waits for a command from the user.
-
IsAlive()
- Verifies the current connection is still valid.
-
SendResponse(String)
- Sends an arbitrary string to the client
-
SetDataSocket(Socket)
- Sets the data socket (such as in response to a PORT command)
Client
private Socket Client
- The socket used for communications with the client.
Data
private Socket Data
- The socket used for data transmission with the client.
Log
private FTPLog Log
FTP_NEWLINE
static final int FTP_NEWLINE
Communication
public Communication()
Communication
public Communication(Socket ClientSocket)
GetCommand
public FTPCommand GetCommand()
- Waits for a command from the user. Creates a new FTPCommand object
and returns the command inside of it.
SendResponse
public void SendResponse(String Response)
- Sends an arbitrary string to the client
IsAlive
public boolean IsAlive()
- Verifies the current connection is still valid.
SetDataSocket
public void SetDataSocket(Socket DataSocket)
- Sets the data socket (such as in response to a PORT command)