Class net.TransferProtocolClient
All Packages    This Package    Previous    Next

Class net.TransferProtocolClient

java.lang.Object
   |
   +----net.NetworkClient
           |
           +----net.TransferProtocolClient

public class TransferProtocolClient
extends NetworkClient
This class implements that basic intefaces of transfer protocols. It is used by subclasses implementing specific protocols.
Version:
1.17, 10 Feb 1995
Author:
Jonathan Payne
See Also:
FtpClient, NntpClient

lastReplyCode
code for last reply
serverResponse
Array of strings (usually 1 entry) for the last reply from the server.

TransferProtocolClient(String, int)
standard constructor to host host, port port.
TransferProtocolClient()
creates an uninitialized instance of this class.

getResponseString()
converts the server response into a string.
getResponseStrings()
Returns all server response strings.
readServerResponse()
Pulls the response from the server and returns the code as a number.
sendServer(String)
Sends command cmd to the server.

serverResponse
  protected Vector serverResponse
Array of strings (usually 1 entry) for the last reply from the server.
lastReplyCode
  protected int lastReplyCode
code for last reply

TransferProtocolClient
  public TransferProtocolClient(String host,
                                int port)
standard constructor to host host, port port.

TransferProtocolClient

  public TransferProtocolClient()
creates an uninitialized instance of this class.

readServerResponse
  public int readServerResponse()
Pulls the response from the server and returns the code as a number. Returns -1 on failure.

sendServer

  public void sendServer(String cmd)
Sends command cmd to the server.

getResponseString

  public String getResponseString()
converts the server response into a string.

getResponseStrings

  public Vector getResponseStrings()
Returns all server response strings.


All Packages    This Package    Previous    Next