Copyright © 1998 T. H. Merrett
Class HostClient
public class java.lang.HostClient
{
// Constructors
public HostClient(String host); §HostClient
// Methods
public DataInputStream ip(); §ip
public PrintStream op(); §op
}
This class establishes contact with FileServer on the specified host.
HostClient
public HostClient(String host)
- Constructs a newly allocated HostClient object for the argument host on port 8187.
- Parameters:
host
-
the IP name of the host
ip
public DataInputStream ip()
- Returns:
- The input stream for the socket.
op
public PrintStream op()
- Returns:
- The output stream for the socket.
Java API Document (HTML written by T. H. Merrett on August 26, 1998)
All rights reserved
Please send any comments or corrections to tim@cs.mcgill.ca