org.npsnet.xrti
Class InternetMessageChannelAcceptor

java.lang.Object
  extended byorg.npsnet.xrti.MessageChannelAcceptor
      extended byorg.npsnet.xrti.InternetMessageChannelAcceptor

public class InternetMessageChannelAcceptor
extends MessageChannelAcceptor

An acceptor for Internet message channels.

Author:
Andrzej Kapolka

Constructor Summary
InternetMessageChannelAcceptor(int port)
          Constructor.
 
Method Summary
 MessageChannel acceptMessageChannel()
          Accepts a new message channel.
 void close()
          Closes this acceptor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InternetMessageChannelAcceptor

public InternetMessageChannelAcceptor(int port)
                               throws java.io.IOException
Constructor.

Parameters:
port - the port on which to accept incoming connections
Throws:
java.io.IOException - if an error occurs
Method Detail

acceptMessageChannel

public MessageChannel acceptMessageChannel()
                                    throws java.io.IOException
Accepts a new message channel. Blocks until a message channel is available for acceptance.

Specified by:
acceptMessageChannel in class MessageChannelAcceptor
Returns:
the newly accepted channel
Throws:
java.io.IOException - if an error occurs

close

public void close()
           throws java.io.IOException
Closes this acceptor.

Specified by:
close in class MessageChannelAcceptor
Throws:
java.io.IOException - if an error occurs