|
CS101 Package Problem Set Javadocs | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cs101.net.ClientWire
Networked Wire, Client Side. Provides readObject, writeObject.
If server's hostName and port are not provided at creation time, the user is prompted for this information using ClientDialog.
Copyright 1996 Massachusetts Institute of Technology
Wire
,
ServerWire
Constructor Summary | |
ClientWire()
How to make one, if we don't know who we want to talk to. |
|
ClientWire(java.lang.String hostName,
int port)
How to make one, if we know who we want to talk to. |
|
ClientWire(java.lang.String hostName,
int port,
boolean verbose)
How to make one, if we know who we want to talk to. |
Method Summary | |
protected void |
connectTo(java.lang.String hostName,
int port)
Opens a connection to a server presumed to be listening on hostName, port. |
void |
finalize()
Closes the Socket and Streams. |
java.lang.Object |
readObject()
Use this to read an Object from the Wire. |
void |
writeObject(java.lang.Object o)
Use this method to write an Object to the Wire. |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ClientWire(java.lang.String hostName, int port, boolean verbose)
hostName
- the name of the machine that the server is onport
- the port number on which the server is listeningverbose
- specify verboseness levelpublic ClientWire(java.lang.String hostName, int port)
hostName
- the name of the machine that the server is onport
- the port number on which the server is listeningpublic ClientWire()
Method Detail |
protected void connectTo(java.lang.String hostName, int port)
hostName
- the name of the machine that the server is onport
- the port number on which the server is listeningpublic java.lang.Object readObject()
readObject
in interface Wire
public void writeObject(java.lang.Object o)
writeObject
in interface Wire
o
- The object to be written.public void finalize()
|
CS101 Package Problem Set Javadocs | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |