pl.edu.pjwstk.yaod.network
Class YCommunicator

java.lang.Object
  |
  +--pl.edu.pjwstk.yaod.network.YCommunicator

public class YCommunicator
extends java.lang.Object


Field Summary
protected static int BUFSIZE
           
 
Constructor Summary
YCommunicator(java.net.Socket socket)
           
YCommunicator(java.lang.String host, int port)
           
 
Method Summary
 void disconnect()
           
 NetMessage getMessage()
           
 void putMessage(NetMessage msg)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BUFSIZE

protected static final int BUFSIZE
Constructor Detail

YCommunicator

public YCommunicator(java.net.Socket socket)
              throws java.io.IOException
Parameters:
paramName - comments
Throws:
XxxxxxException - if ...

YCommunicator

public YCommunicator(java.lang.String host,
                     int port)
              throws java.io.IOException
Parameters:
paramName - comments
Throws:
XxxxxxException - if ...
Method Detail

disconnect

public void disconnect()
Parameters:
paramName - comments
Returns:
comments
Throws:
XxxxxxException - if ...

putMessage

public void putMessage(NetMessage msg)
                throws java.io.IOException
Parameters:
paramName - comments
Returns:
comments
Throws:
XxxxxxException - if ...

getMessage

public NetMessage getMessage()
                      throws java.io.IOException
Parameters:
paramName - comments
Returns:
comments
Throws:
XxxxxxException - if ...