public class OioSctpChannel extends io.netty.channel.oio.AbstractOioMessageChannel implements SctpChannel
SctpChannel implementation which use blocking mode and allows to read / write
SctpMessages to the underlying SctpChannel.
Be aware that not all operations systems support SCTP. Please refer to the documentation of your operation system,
to understand what you need to do to use it. Also this feature is only supported on Java 7+.| Constructor and Description |
|---|
OioSctpChannel()
Create a new instance with an new
SctpChannel. |
OioSctpChannel(io.netty.channel.Channel parent,
SctpChannel ch)
Create a new instance from the given
SctpChannel. |
OioSctpChannel(SctpChannel ch)
Create a new instance from the given
SctpChannel. |
| Modifier and Type | Method and Description |
|---|---|
Set<InetSocketAddress> |
allLocalAddresses()
Return all local addresses of the SCTP channel.
|
io.netty.buffer.ByteBufAllocator |
alloc() |
Set<InetSocketAddress> |
allRemoteAddresses()
Return all remote addresses of the SCTP server channel.
|
Association |
association()
Returns the underlying SCTP association.
|
io.netty.channel.ChannelFuture |
bind(SocketAddress arg0) |
io.netty.channel.ChannelFuture |
bind(SocketAddress arg0,
io.netty.channel.ChannelPromise arg1) |
io.netty.channel.ChannelFuture |
bindAddress(InetAddress localAddress)
Bind a address to the already bound channel to enable multi-homing.
|
io.netty.channel.ChannelFuture |
bindAddress(InetAddress localAddress,
io.netty.channel.ChannelPromise promise)
Bind a address to the already bound channel to enable multi-homing.
|
io.netty.channel.ChannelFuture |
close() |
io.netty.channel.ChannelFuture |
close(io.netty.channel.ChannelPromise arg0) |
SctpChannelConfig |
config()
Returns the
SctpChannelConfig configuration of the channel. |
io.netty.channel.ChannelFuture |
connect(SocketAddress arg0) |
io.netty.channel.ChannelFuture |
connect(SocketAddress arg0,
io.netty.channel.ChannelPromise arg1) |
io.netty.channel.ChannelFuture |
connect(SocketAddress arg0,
SocketAddress arg1) |
io.netty.channel.ChannelFuture |
connect(SocketAddress arg0,
SocketAddress arg1,
io.netty.channel.ChannelPromise arg2) |
io.netty.channel.ChannelFuture |
deregister()
Deprecated.
|
io.netty.channel.ChannelFuture |
deregister(io.netty.channel.ChannelPromise arg0)
Deprecated.
|
io.netty.channel.ChannelFuture |
disconnect() |
io.netty.channel.ChannelFuture |
disconnect(io.netty.channel.ChannelPromise arg0) |
protected void |
doBind(SocketAddress localAddress) |
protected void |
doClose() |
protected void |
doConnect(SocketAddress remoteAddress,
SocketAddress localAddress) |
protected void |
doDisconnect() |
protected int |
doReadMessages(List<Object> msgs) |
protected void |
doWrite(io.netty.channel.ChannelOutboundBuffer in) |
boolean |
isActive() |
boolean |
isOpen() |
InetSocketAddress |
localAddress()
Return the (primary) local address of the SCTP channel.
|
protected SocketAddress |
localAddress0() |
io.netty.channel.ChannelMetadata |
metadata() |
io.netty.channel.ChannelFuture |
newFailedFuture(Throwable arg0) |
io.netty.channel.ChannelProgressivePromise |
newProgressivePromise() |
io.netty.channel.ChannelPromise |
newPromise() |
io.netty.channel.ChannelFuture |
newSucceededFuture() |
SctpServerChannel |
parent() |
io.netty.channel.ChannelPipeline |
pipeline() |
InetSocketAddress |
remoteAddress()
Return the (primary) remote address of the SCTP channel.
|
protected SocketAddress |
remoteAddress0() |
io.netty.channel.ChannelFuture |
unbindAddress(InetAddress localAddress)
Unbind the address from channel's multi-homing address list.
|
io.netty.channel.ChannelFuture |
unbindAddress(InetAddress localAddress,
io.netty.channel.ChannelPromise promise)
Unbind the address from channel's multi-homing address list.
|
io.netty.channel.ChannelPromise |
voidPromise() |
io.netty.channel.ChannelFuture |
write(Object arg0) |
io.netty.channel.ChannelFuture |
write(Object arg0,
io.netty.channel.ChannelPromise arg1) |
io.netty.channel.ChannelFuture |
writeAndFlush(Object arg0) |
io.netty.channel.ChannelFuture |
writeAndFlush(Object arg0,
io.netty.channel.ChannelPromise arg1) |
doBeginRead, isCompatible, newUnsafealloc, bind, bind, checkEOF, close, close, closeFuture, compareTo, connect, connect, connect, connect, deregister, deregister, disconnect, disconnect, doDeregister, doRegister, equals, eventLoop, flush, hashCode, invalidateLocalAddress, invalidateRemoteAddress, isRegistered, isWritable, newFailedFuture, newProgressivePromise, newPromise, newSucceededFuture, pipeline, read, toString, unsafe, voidPromise, write, write, writeAndFlush, writeAndFlushclone, finalize, getClass, notify, notifyAll, wait, wait, waitcloseFuture, eventLoop, flush, isRegistered, isWritable, read, unsafecompareTopublic OioSctpChannel()
SctpChannel.public OioSctpChannel(SctpChannel ch)
SctpChannel.ch - the SctpChannel which is used by this instancepublic OioSctpChannel(io.netty.channel.Channel parent,
SctpChannel ch)
SctpChannel.parent - the parent Channel which was used to create this instance. This can be null if the
has no parent as it was created by your self.ch - the SctpChannel which is used by this instancepublic InetSocketAddress localAddress()
SctpChannellocalAddress in interface io.netty.channel.ChannellocalAddress in interface SctpChannellocalAddress in class io.netty.channel.AbstractChannelpublic InetSocketAddress remoteAddress()
SctpChannelremoteAddress in interface io.netty.channel.ChannelremoteAddress in interface SctpChannelremoteAddress in class io.netty.channel.AbstractChannelpublic SctpServerChannel parent()
parent in interface io.netty.channel.Channelparent in interface SctpChannelparent in class io.netty.channel.AbstractChannelpublic io.netty.channel.ChannelMetadata metadata()
metadata in interface io.netty.channel.Channelpublic SctpChannelConfig config()
SctpChannelSctpChannelConfig configuration of the channel.config in interface io.netty.channel.Channelconfig in interface SctpChannelpublic boolean isOpen()
isOpen in interface io.netty.channel.Channelprotected int doReadMessages(List<Object> msgs) throws Exception
doReadMessages in class io.netty.channel.oio.AbstractOioMessageChannelExceptionprotected void doWrite(io.netty.channel.ChannelOutboundBuffer in)
throws Exception
doWrite in class io.netty.channel.AbstractChannelExceptionpublic Association association()
SctpChannelassociation in interface SctpChannelpublic boolean isActive()
isActive in interface io.netty.channel.Channelprotected SocketAddress localAddress0()
localAddress0 in class io.netty.channel.AbstractChannelpublic Set<InetSocketAddress> allLocalAddresses()
SctpChannelallLocalAddresses in interface SctpChannelprotected SocketAddress remoteAddress0()
remoteAddress0 in class io.netty.channel.AbstractChannelpublic Set<InetSocketAddress> allRemoteAddresses()
SctpChannelallRemoteAddresses in interface SctpChannelprotected void doBind(SocketAddress localAddress) throws Exception
doBind in class io.netty.channel.AbstractChannelExceptionprotected void doConnect(SocketAddress remoteAddress, SocketAddress localAddress) throws Exception
doConnect in class io.netty.channel.oio.AbstractOioChannelExceptionprotected void doDisconnect()
throws Exception
doDisconnect in class io.netty.channel.AbstractChannelExceptionprotected void doClose()
throws Exception
doClose in class io.netty.channel.AbstractChannelExceptionpublic io.netty.channel.ChannelFuture bindAddress(InetAddress localAddress)
SctpChannelbindAddress in interface SctpChannelpublic io.netty.channel.ChannelFuture bindAddress(InetAddress localAddress, io.netty.channel.ChannelPromise promise)
SctpChannelChannelPromise and return a ChannelFuturebindAddress in interface SctpChannelpublic io.netty.channel.ChannelFuture unbindAddress(InetAddress localAddress)
SctpChannelunbindAddress in interface SctpChannelpublic io.netty.channel.ChannelFuture unbindAddress(InetAddress localAddress, io.netty.channel.ChannelPromise promise)
SctpChannelChannelPromise and return a ChannelFutureunbindAddress in interface SctpChannelpublic io.netty.channel.ChannelFuture bind(SocketAddress arg0)
public io.netty.channel.ChannelFuture connect(SocketAddress arg0)
public io.netty.channel.ChannelFuture connect(SocketAddress arg0, SocketAddress arg1)
public io.netty.channel.ChannelFuture disconnect()
public io.netty.channel.ChannelFuture close()
@Deprecated public io.netty.channel.ChannelFuture deregister()
public io.netty.channel.ChannelFuture bind(SocketAddress arg0, io.netty.channel.ChannelPromise arg1)
public io.netty.channel.ChannelFuture connect(SocketAddress arg0, io.netty.channel.ChannelPromise arg1)
public io.netty.channel.ChannelFuture connect(SocketAddress arg0, SocketAddress arg1, io.netty.channel.ChannelPromise arg2)
public io.netty.channel.ChannelFuture disconnect(io.netty.channel.ChannelPromise arg0)
public io.netty.channel.ChannelFuture close(io.netty.channel.ChannelPromise arg0)
@Deprecated public io.netty.channel.ChannelFuture deregister(io.netty.channel.ChannelPromise arg0)
public io.netty.channel.ChannelFuture write(Object arg0)
public io.netty.channel.ChannelFuture write(Object arg0, io.netty.channel.ChannelPromise arg1)
public io.netty.channel.ChannelFuture writeAndFlush(Object arg0, io.netty.channel.ChannelPromise arg1)
public io.netty.channel.ChannelFuture writeAndFlush(Object arg0)
public io.netty.channel.ChannelPipeline pipeline()
public io.netty.buffer.ByteBufAllocator alloc()
public io.netty.channel.ChannelPromise newPromise()
public io.netty.channel.ChannelProgressivePromise newProgressivePromise()
public io.netty.channel.ChannelFuture newSucceededFuture()
public io.netty.channel.ChannelFuture newFailedFuture(Throwable arg0)
public io.netty.channel.ChannelPromise voidPromise()
Copyright © 2008–2013 The Netty Project. All rights reserved.