org.siebengeisslein.net
Class MessageSocketImpl

java.lang.Object
  extended by org.siebengeisslein.net.MessageSocketImpl
All Implemented Interfaces:
MessageSocket

public class MessageSocketImpl
extends java.lang.Object
implements MessageSocket


Constructor Summary
MessageSocketImpl(java.lang.String host, int port)
           
 
Method Summary
 void close()
           
 Message getNextMessage()
           
 java.lang.String getProtocol()
           
 java.lang.String getProtocolFeatures()
           
 java.lang.String getProtocolVersion()
           
 void setClosing()
           
 void write(ClientMessage message, boolean flush)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageSocketImpl

public MessageSocketImpl(java.lang.String host,
                         int port)
                  throws java.io.IOException
Throws:
java.io.IOException
Method Detail

getProtocol

public java.lang.String getProtocol()
Specified by:
getProtocol in interface MessageSocket

getProtocolFeatures

public java.lang.String getProtocolFeatures()
Specified by:
getProtocolFeatures in interface MessageSocket

getProtocolVersion

public java.lang.String getProtocolVersion()
Specified by:
getProtocolVersion in interface MessageSocket

getNextMessage

public Message getNextMessage()
                       throws java.io.IOException
Specified by:
getNextMessage in interface MessageSocket
Throws:
java.io.IOException

write

public void write(ClientMessage message,
                  boolean flush)
           throws java.io.IOException
Specified by:
write in interface MessageSocket
Throws:
java.io.IOException

setClosing

public void setClosing()
Specified by:
setClosing in interface MessageSocket

close

public void close()
           throws java.io.IOException
Specified by:
close in interface MessageSocket
Throws:
java.io.IOException