wclient
Class Communicator
java.lang.Object
|
+--wclient.Communicator
- public class Communicator
- extends java.lang.Object
This Class is responsible for all the communications setup on the
client-side between the client and server.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Communicator
public Communicator(java.lang.String hostname,
int portnum)
Communicator
public Communicator()
createConnection
public void createConnection()
checkAvailability
public boolean checkAvailability()
writeInformation
public void writeInformation(java.lang.Object s)
throws java.io.IOException
java.io.IOException
getInputStream
public java.io.ObjectInputStream getInputStream()
writeInt
public void writeInt(int i)
throws java.io.IOException
java.io.IOException
readIntFromStream
public int readIntFromStream()
readInformation
public java.lang.Object readInformation()