C# Class Helios.Channels.Sockets.AbstractSocketByteChannel

Inheritance: AbstractSocketChannel
Mostra file Open project: helios-io/helios Class Usage Examples

Protected Methods

Method Description
AbstractSocketByteChannel ( IChannel parent, Socket socket ) : System
DoReadBytes ( IByteBuf buf ) : int

Read bytes into the given {@link ByteBuf} and return the amount.

DoWrite ( ChannelOutboundBuffer input ) : void
DoWriteBytes ( IByteBuf buf ) : int

Write bytes form the given {@link ByteBuf} to the underlying {@link java.nio.channels.Channel}. @param buf the {@link ByteBuf} from which the bytes should be written @return amount the amount of written bytes

FilterOutboundMessage ( object msg ) : object
IncompleteWrite ( bool scheduleAsync, SocketChannelAsyncOperation operation ) : void
NewUnsafe ( ) : IChannelUnsafe
ScheduleSocketRead ( ) : void

Private Methods

Method Description
OnReadCompletedSync ( object u, object e ) : void

Method Details

AbstractSocketByteChannel() protected method

protected AbstractSocketByteChannel ( IChannel parent, Socket socket ) : System
parent IChannel
socket System.Net.Sockets.Socket
return System

DoReadBytes() protected abstract method

Read bytes into the given {@link ByteBuf} and return the amount.
protected abstract DoReadBytes ( IByteBuf buf ) : int
buf IByteBuf
return int

DoWrite() protected method

protected DoWrite ( ChannelOutboundBuffer input ) : void
input ChannelOutboundBuffer
return void

DoWriteBytes() protected abstract method

Write bytes form the given {@link ByteBuf} to the underlying {@link java.nio.channels.Channel}. @param buf the {@link ByteBuf} from which the bytes should be written @return amount the amount of written bytes
protected abstract DoWriteBytes ( IByteBuf buf ) : int
buf IByteBuf
return int

FilterOutboundMessage() protected method

protected FilterOutboundMessage ( object msg ) : object
msg object
return object

IncompleteWrite() protected method

protected IncompleteWrite ( bool scheduleAsync, SocketChannelAsyncOperation operation ) : void
scheduleAsync bool
operation SocketChannelAsyncOperation
return void

NewUnsafe() protected method

protected NewUnsafe ( ) : IChannelUnsafe
return IChannelUnsafe

ScheduleSocketRead() protected method

protected ScheduleSocketRead ( ) : void
return void