C# Class Helios.Channels.Sockets.TcpSocketChannel

Inheritance: AbstractSocketByteChannel
Datei anzeigen Open project: helios-io/helios Class Usage Examples

Public Methods

Method 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}.

Protected Methods

Method 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

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

Method Details

DoBind() protected method

protected DoBind ( EndPoint localAddress ) : void
localAddress System.Net.EndPoint
return void

DoClose() protected method

protected DoClose ( ) : void
return void

DoConnect() protected method

protected DoConnect ( EndPoint remoteAddress, EndPoint localAddress ) : bool
remoteAddress System.Net.EndPoint
localAddress System.Net.EndPoint
return bool

DoDisconnect() protected method

protected DoDisconnect ( ) : void
return void

DoFinishConnect() protected method

protected DoFinishConnect ( SocketChannelAsyncOperation operation ) : void
operation SocketChannelAsyncOperation
return void

DoReadBytes() protected method

protected DoReadBytes ( IByteBuf buf ) : int
buf IByteBuf
return int

DoWrite() protected method

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

DoWriteBytes() protected method

protected DoWriteBytes ( IByteBuf buf ) : int
buf IByteBuf
return int

NewUnsafe() protected method

protected NewUnsafe ( ) : IChannelUnsafe
return IChannelUnsafe

ShutdownOutputAsync() public method

public ShutdownOutputAsync ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

TcpSocketChannel() public method

Create a new instance
public TcpSocketChannel ( ) : System
return System

TcpSocketChannel() public method

Create a new instance
public TcpSocketChannel ( AddressFamily addressFamily ) : System
addressFamily AddressFamily
return System

TcpSocketChannel() public method

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
return System

TcpSocketChannel() public method

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