|
barchart-udt-core 2.3.0-SNAPSHOT / 2013-05-13T01:37:38.485-0500 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.nio.channels.spi.AbstractInterruptibleChannel
java.nio.channels.SelectableChannel
java.nio.channels.spi.AbstractSelectableChannel
java.nio.channels.ServerSocketChannel
com.barchart.udt.nio.ServerSocketChannelUDT
public class ServerSocketChannelUDT
ServerSocketChannel-like wrapper for SocketUDT can be either
stream or message oriented, depending on TypeUDT
you must use SelectorProviderUDT.openServerSocketChannel() to obtain
instance of this class; do not use JDK
ServerSocketChannel.open();
example:
SelectorProvider provider = SelectorProviderUDT.DATAGRAM;
ServerSocketChannel acceptChannel = provider.openServerSocketChannel();
ServerSocket acceptSocket = acceptChannel.socket();
InetSocketAddress acceptAddress = new InetSocketAddress("localhost", 12345);
acceptorSocket.bind(acceptAddress);
assert acceptSocket.isBound();
SocketChannel connectChannel = acceptChannel.accept();
assert connectChannel.isConnected();
| Field Summary | |
|---|---|
protected static org.slf4j.Logger |
log
|
protected NioServerSocketUDT |
socketAdapter
|
protected SocketUDT |
socketUDT
|
| Constructor Summary | |
|---|---|
protected |
ServerSocketChannelUDT(SelectorProviderUDT provider,
SocketUDT socketUDT)
|
| Method Summary | |
|---|---|
SocketChannelUDT |
accept()
|
protected void |
implCloseSelectableChannel()
|
protected void |
implConfigureBlocking(boolean block)
|
boolean |
isConnectFinished()
Was connection request SocketChannelUDT.connect(java.net.SocketAddress) acknowledged by
SocketChannelUDT.finishConnect()? |
KindUDT |
kindUDT()
The kind of UDT channel. |
SelectorProviderUDT |
providerUDT()
UDT specific provider which produced this channel. |
NioServerSocketUDT |
socket()
|
SocketUDT |
socketUDT()
Underlying UDT socket. |
String |
toString()
|
TypeUDT |
typeUDT()
The type of UDT socket. |
| Methods inherited from class java.nio.channels.ServerSocketChannel |
|---|
open, validOps |
| Methods inherited from class java.nio.channels.spi.AbstractSelectableChannel |
|---|
blockingLock, configureBlocking, implCloseChannel, isBlocking, isRegistered, keyFor, provider, register |
| Methods inherited from class java.nio.channels.SelectableChannel |
|---|
register |
| Methods inherited from class java.nio.channels.spi.AbstractInterruptibleChannel |
|---|
begin, close, end, isOpen |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.barchart.udt.nio.ChannelUDT |
|---|
validOps |
| Methods inherited from interface java.nio.channels.Channel |
|---|
close, isOpen |
| Field Detail |
|---|
protected static final org.slf4j.Logger log
@ThreadSafe(value="this") protected NioServerSocketUDT socketAdapter
protected final SocketUDT socketUDT
| Constructor Detail |
|---|
protected ServerSocketChannelUDT(SelectorProviderUDT provider,
SocketUDT socketUDT)
| Method Detail |
|---|
public SocketChannelUDT accept()
throws IOException
accept in class ServerSocketChannelIOException
protected void implCloseSelectableChannel()
throws IOException
implCloseSelectableChannel in class AbstractSelectableChannelIOException
protected void implConfigureBlocking(boolean block)
throws IOException
implConfigureBlocking in class AbstractSelectableChannelIOExceptionpublic boolean isConnectFinished()
ChannelUDTSocketChannelUDT.connect(java.net.SocketAddress) acknowledged by
SocketChannelUDT.finishConnect()?
isConnectFinished in interface ChannelUDTpublic KindUDT kindUDT()
ChannelUDT
kindUDT in interface ChannelUDTpublic SelectorProviderUDT providerUDT()
ChannelUDT
providerUDT in interface ChannelUDTpublic NioServerSocketUDT socket()
socket in class ServerSocketChannelpublic SocketUDT socketUDT()
ChannelUDT
socketUDT in interface ChannelUDTpublic String toString()
toString in class Objectpublic TypeUDT typeUDT()
ChannelUDT
typeUDT in interface ChannelUDT
|
barchart-udt-core 2.3.0-SNAPSHOT / 2013-05-13T01:37:38.485-0500 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||