Class OioSocketChannel
java.lang.Object
org.jboss.netty.channel.AbstractChannel
org.jboss.netty.channel.socket.oio.AbstractOioChannel
org.jboss.netty.channel.socket.oio.OioSocketChannel
- All Implemented Interfaces:
Comparable<Channel>
,Channel
,SocketChannel
- Direct Known Subclasses:
OioAcceptedSocketChannel
,OioClientSocketChannel
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final SocketChannelConfig
(package private) final Socket
Fields inherited from class org.jboss.netty.channel.socket.oio.AbstractOioChannel
interestOpsLock, remoteAddress, worker, workerThread
Fields inherited from interface org.jboss.netty.channel.Channel
OP_NONE, OP_READ, OP_READ_WRITE, OP_WRITE
-
Constructor Summary
ConstructorsConstructorDescriptionOioSocketChannel
(Channel parent, ChannelFactory factory, ChannelPipeline pipeline, ChannelSink sink, Socket socket) -
Method Summary
Modifier and TypeMethodDescription(package private) void
Returns the configuration of this channel.(package private) abstract PushbackInputStream
(package private) InetSocketAddress
(package private) abstract OutputStream
(package private) InetSocketAddress
(package private) boolean
(package private) boolean
(package private) boolean
Methods inherited from class org.jboss.netty.channel.socket.oio.AbstractOioChannel
getInternalInterestOps, getLocalAddress, getRemoteAddress, isBound, isConnected, setClosed, setInternalInterestOps, write
Methods inherited from class org.jboss.netty.channel.AbstractChannel
bind, close, compareTo, connect, disconnect, equals, getAttachment, getCloseFuture, getFactory, getId, getInterestOps, getParent, getPipeline, getSucceededFuture, getUnsupportedOperationFuture, getUserDefinedWritability, hashCode, isOpen, isReadable, isWritable, setAttachment, setInterestOps, setReadable, setUnwritable, setUserDefinedWritability, setWritable, toString, unbind, write
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.jboss.netty.channel.Channel
bind, close, connect, disconnect, getAttachment, getCloseFuture, getFactory, getId, getInterestOps, getParent, getPipeline, getUserDefinedWritability, isBound, isConnected, isOpen, isReadable, isWritable, setAttachment, setInterestOps, setReadable, setUserDefinedWritability, unbind, write, write
Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface org.jboss.netty.channel.socket.SocketChannel
getLocalAddress, getRemoteAddress
-
Field Details
-
socket
-
config
-
-
Constructor Details
-
OioSocketChannel
OioSocketChannel(Channel parent, ChannelFactory factory, ChannelPipeline pipeline, ChannelSink sink, Socket socket)
-
-
Method Details
-
getConfig
Description copied from interface:Channel
Returns the configuration of this channel.- Specified by:
getConfig
in interfaceChannel
- Specified by:
getConfig
in interfaceSocketChannel
-
getInputStream
-
getOutputStream
-
isSocketBound
boolean isSocketBound()- Specified by:
isSocketBound
in classAbstractOioChannel
-
isSocketConnected
boolean isSocketConnected()- Specified by:
isSocketConnected
in classAbstractOioChannel
-
getLocalSocketAddress
- Specified by:
getLocalSocketAddress
in classAbstractOioChannel
- Throws:
Exception
-
getRemoteSocketAddress
- Specified by:
getRemoteSocketAddress
in classAbstractOioChannel
- Throws:
Exception
-
closeSocket
- Specified by:
closeSocket
in classAbstractOioChannel
- Throws:
IOException
-
isSocketClosed
boolean isSocketClosed()- Specified by:
isSocketClosed
in classAbstractOioChannel
-