C# Class Helios.Channels.Sockets.AbstractSocketByteChannel

Inheritance: AbstractSocketChannel
Afficher le fichier Open project: helios-io/helios Class Usage Examples

Méthodes protégées

Méthode 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

Méthode Description
OnReadCompletedSync ( object u, object e ) : void

Method Details

AbstractSocketByteChannel() protected méthode

protected AbstractSocketByteChannel ( IChannel parent, Socket socket ) : System
parent IChannel
socket System.Net.Sockets.Socket
Résultat System

DoReadBytes() protected abstract méthode

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

DoWrite() protected méthode

protected DoWrite ( ChannelOutboundBuffer input ) : void
input ChannelOutboundBuffer
Résultat void

DoWriteBytes() protected abstract méthode

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
Résultat int

FilterOutboundMessage() protected méthode

protected FilterOutboundMessage ( object msg ) : object
msg object
Résultat object

IncompleteWrite() protected méthode

protected IncompleteWrite ( bool scheduleAsync, SocketChannelAsyncOperation operation ) : void
scheduleAsync bool
operation SocketChannelAsyncOperation
Résultat void

NewUnsafe() protected méthode

protected NewUnsafe ( ) : IChannelUnsafe
Résultat IChannelUnsafe

ScheduleSocketRead() protected méthode

protected ScheduleSocketRead ( ) : void
Résultat void