    All Packages    This Package    Previous    Next

# Class net.NetworkClient

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

public class NetworkClient
extends Object

This is the base class for network clients.

Version:
  1.12, 03 Mar 1995
Author:
  Jonathan Payne

##

serverInput
  Buffered stream for reading replies from server.
serverOutput
  Stream for printing to the server.
serverSocket
  Socket for communicating with server.

##

NetworkClient(String, int)
  Create connection with host host on port port
NetworkClient()

##

closeServer()
  Close an open connection to the server.
openServer(String, int)
  Open a connection to the server.
serverIsOpen()
  Return server connection status

##

serverSocket

      protected Socket serverSocket

  Socket for communicating with server.

serverOutput

      protected PrintStream serverOutput

  Stream for printing to the server.

serverInput

      public InputStream serverInput

  Buffered stream for reading replies from server.

##

NetworkClient

      public NetworkClient(String host,
                           int port)

  Create connection with host host on port port

NetworkClient

      public NetworkClient()

##

openServer

      public void openServer(String server,
                             int port)

  Open a connection to the server.

closeServer

      public void closeServer()

  Close an open connection to the server.

serverIsOpen

      public boolean serverIsOpen()

  Return server connection status

    All Packages    This Package    Previous    Next