C# Класс Helios.Channels.Sockets.TcpSocketChannel

Наследование: AbstractSocketByteChannel
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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}.

Защищенные методы

Метод Описание
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

Приватные методы

Метод Описание
OnConnected ( ) : void
ShutdownOutput0 ( TaskCompletionSource promise ) : void
TcpSocketChannel ( IChannel parent, Socket socket, bool connected ) : System

Описание методов

DoBind() защищенный метод

protected DoBind ( EndPoint localAddress ) : void
localAddress System.Net.EndPoint
Результат void

DoClose() защищенный метод

protected DoClose ( ) : void
Результат void

DoConnect() защищенный метод

protected DoConnect ( EndPoint remoteAddress, EndPoint localAddress ) : bool
remoteAddress System.Net.EndPoint
localAddress System.Net.EndPoint
Результат bool

DoDisconnect() защищенный метод

protected DoDisconnect ( ) : void
Результат void

DoFinishConnect() защищенный метод

protected DoFinishConnect ( SocketChannelAsyncOperation operation ) : void
operation SocketChannelAsyncOperation
Результат void

DoReadBytes() защищенный метод

protected DoReadBytes ( IByteBuf buf ) : int
buf IByteBuf
Результат int

DoWrite() защищенный метод

protected DoWrite ( ChannelOutboundBuffer input ) : void
input ChannelOutboundBuffer
Результат void

DoWriteBytes() защищенный метод

protected DoWriteBytes ( IByteBuf buf ) : int
buf IByteBuf
Результат int

NewUnsafe() защищенный метод

protected NewUnsafe ( ) : IChannelUnsafe
Результат IChannelUnsafe

ShutdownOutputAsync() публичный метод

public ShutdownOutputAsync ( ) : System.Threading.Tasks.Task
Результат System.Threading.Tasks.Task

TcpSocketChannel() публичный метод

Create a new instance
public TcpSocketChannel ( ) : System
Результат System

TcpSocketChannel() публичный метод

Create a new instance
public TcpSocketChannel ( AddressFamily addressFamily ) : System
addressFamily AddressFamily
Результат System

TcpSocketChannel() публичный метод

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
Результат System

TcpSocketChannel() публичный метод

Create a new instance using the given {@link SocketChannel}.
public TcpSocketChannel ( Socket socket ) : System
socket Socket
Результат System