|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.tribe.channel.AbstractServerChannel
org.objectweb.tribe.channel.tcp.TcpServerChannel
This class defines a TcpServerChannel
Constructor Summary | |
TcpServerChannel()
Creates a new unbound TcpServerChannel |
|
TcpServerChannel(int port)
Creates a new TcpServerChannel bound to the specified port.
|
Method Summary | |
AbstractReliableFifoChannel |
accept()
Accepts a new incoming connection. |
void |
bind(Address source)
Binds a source address |
void |
close()
Closes the serverSocket. |
Address |
getBindAddress()
Get the address on which this channel is bound. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TcpServerChannel() throws java.io.IOException
TcpServerChannel
java.io.IOException
- if an error occurspublic TcpServerChannel(int port) throws java.io.IOException
TcpServerChannel
bound to the specified port.
If port is 0, then the socket is bound to an available port chosen by the
system.
port
- bind the socket to the given port (0 let the system choose an
available port).
java.io.IOException
- if an error occursMethod Detail |
public void bind(Address source) throws ChannelException
AbstractServerChannel
bind
in class AbstractServerChannel
source
- source address to bind
ChannelException
- if an error occursorg.objectweb.tribe.serverSocket.AbstractServerChannel#bind(org.objectweb.tribe.common.Address)
public Address getBindAddress() throws NotConnectedException
AbstractServerChannel
getBindAddress
in class AbstractServerChannel
NotConnectedException
- if the channel is not connected.AbstractServerChannel.getBindAddress()
public AbstractReliableFifoChannel accept() throws ChannelException
AbstractServerChannel
accept
in class AbstractServerChannel
ChannelException
- if an error occursorg.objectweb.tribe.serverSocket.AbstractServerChannel#accept()
public void close() throws ChannelException
AbstractServerChannel
close
in class AbstractServerChannel
ChannelException
- if an error occurs.org.objectweb.tribe.serverSocket.AbstractServerChannel#close()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |