C# Class Helios.Channels.Sockets.TcpSocketChannel

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

Méthodes publiques

Méthode Description
ShutdownOutputAsync ( ) : System.Threading.Tasks.Task
TcpSocketChannel ( ) : System

Create a new instance

TcpSocketChannel ( AddressFamily addressFamily ) : System

Create a new instance

TcpSocketChannel ( IChannel parent, Socket socket ) : System

Create a new instance @param parent the {@link Channel} which created this instance or {@code null} if it was created by the user @param socket the {@link SocketChannel} which will be used

TcpSocketChannel ( Socket socket ) : System

Create a new instance using the given {@link SocketChannel}.

Méthodes protégées

Méthode Description
DoBind ( EndPoint localAddress ) : void
DoClose ( ) : void
DoConnect ( EndPoint remoteAddress, EndPoint localAddress ) : bool
DoDisconnect ( ) : void
DoFinishConnect ( SocketChannelAsyncOperation operation ) : void
DoReadBytes ( IByteBuf buf ) : int
DoWrite ( ChannelOutboundBuffer input ) : void
DoWriteBytes ( IByteBuf buf ) : int
NewUnsafe ( ) : IChannelUnsafe

Private Methods

Méthode Description
OnConnected ( ) : void
ShutdownOutput0 ( TaskCompletionSource promise ) : void
TcpSocketChannel ( IChannel parent, Socket socket, bool connected ) : System

Method Details

DoBind() protected méthode

protected DoBind ( EndPoint localAddress ) : void
localAddress System.Net.EndPoint
Résultat void

DoClose() protected méthode

protected DoClose ( ) : void
Résultat void

DoConnect() protected méthode

protected DoConnect ( EndPoint remoteAddress, EndPoint localAddress ) : bool
remoteAddress System.Net.EndPoint
localAddress System.Net.EndPoint
Résultat bool

DoDisconnect() protected méthode

protected DoDisconnect ( ) : void
Résultat void

DoFinishConnect() protected méthode

protected DoFinishConnect ( SocketChannelAsyncOperation operation ) : void
operation SocketChannelAsyncOperation
Résultat void

DoReadBytes() protected méthode

protected 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 méthode

protected DoWriteBytes ( IByteBuf buf ) : int
buf IByteBuf
Résultat int

NewUnsafe() protected méthode

protected NewUnsafe ( ) : IChannelUnsafe
Résultat IChannelUnsafe

ShutdownOutputAsync() public méthode

public ShutdownOutputAsync ( ) : System.Threading.Tasks.Task
Résultat System.Threading.Tasks.Task

TcpSocketChannel() public méthode

Create a new instance
public TcpSocketChannel ( ) : System
Résultat System

TcpSocketChannel() public méthode

Create a new instance
public TcpSocketChannel ( AddressFamily addressFamily ) : System
addressFamily AddressFamily
Résultat System

TcpSocketChannel() public méthode

Create a new instance @param parent the {@link Channel} which created this instance or {@code null} if it was created by the user @param socket the {@link SocketChannel} which will be used
public TcpSocketChannel ( IChannel parent, Socket socket ) : System
parent IChannel
socket Socket
Résultat System

TcpSocketChannel() public méthode

Create a new instance using the given {@link SocketChannel}.
public TcpSocketChannel ( Socket socket ) : System
socket Socket
Résultat System