C# 클래스 Helios.Channels.AbstractChannel

상속: IChannel
파일 보기 프로젝트 열기: helios-io/helios 1 사용 예제들

Private Properties

프로퍼티 타입 설명

공개 메소드들

메소드 설명
BindAsync ( EndPoint localAddress ) : System.Threading.Tasks.Task
CloseAsync ( ) : System.Threading.Tasks.Task
ConnectAsync ( EndPoint remoteAddress ) : System.Threading.Tasks.Task
ConnectAsync ( EndPoint remoteAddress, EndPoint localAddress ) : System.Threading.Tasks.Task
DeregisterAsync ( ) : System.Threading.Tasks.Task
DisconnectAsync ( ) : System.Threading.Tasks.Task
Flush ( ) : IChannel
GetHashCode ( ) : int
Read ( ) : IChannel
ToString ( ) : string
WriteAndFlushAsync ( object message ) : System.Threading.Tasks.Task
WriteAsync ( object message ) : System.Threading.Tasks.Task

보호된 메소드들

메소드 설명
AbstractChannel ( IChannel parent ) : System
AbstractChannel ( IChannelId id, IChannel parent ) : System
CacheLocalAddress ( ) : EndPoint
CacheRemoteAddress ( ) : EndPoint
DoBeginRead ( ) : void

ScheduleAsync a read operation.

DoBind ( EndPoint localAddress ) : void

Bind the {@link Channel} to the {@link EndPoint}

DoClose ( ) : void

Close the {@link Channel}

DoDeregister ( ) : void

Deregister the {@link Channel} from its {@link EventLoop}. Sub-classes may override this method

DoDisconnect ( ) : void

Disconnect this {@link Channel} from its remote peer

DoRegister ( ) : void

Is called after the {@link Channel} is registered with its {@link EventLoop} as part of the register process. Sub-classes may override this method

DoWrite ( ChannelOutboundBuffer input ) : void

Flush the content of the given buffer to the remote peer.

FilterOutboundMessage ( object msg ) : object

Invoked when a new message is added to a {@link ChannelOutboundBuffer} of this {@link AbstractChannel}, so that the {@link Channel} implementation converts the message to another. (e.g. heap buffer -> direct buffer)

InvalidateLocalAddress ( ) : void
InvalidateRemoteAddress ( ) : void
IsCompatible ( IEventLoop eventLoop ) : bool

Return {@code true} if the given {@link EventLoop} is compatible with this instance.

NewUnsafe ( ) : IChannelUnsafe

Create a new AbstractUnsafe instance which will be used for the life-time of the IChannel

메소드 상세

AbstractChannel() 보호된 메소드

protected AbstractChannel ( IChannel parent ) : System
parent IChannel
리턴 System

AbstractChannel() 보호된 메소드

protected AbstractChannel ( IChannelId id, IChannel parent ) : System
id IChannelId
parent IChannel
리턴 System

BindAsync() 공개 메소드

public BindAsync ( EndPoint localAddress ) : System.Threading.Tasks.Task
localAddress System.Net.EndPoint
리턴 System.Threading.Tasks.Task

CacheLocalAddress() 보호된 메소드

protected CacheLocalAddress ( ) : EndPoint
리턴 System.Net.EndPoint

CacheRemoteAddress() 보호된 메소드

protected CacheRemoteAddress ( ) : EndPoint
리턴 System.Net.EndPoint

CloseAsync() 공개 메소드

public CloseAsync ( ) : System.Threading.Tasks.Task
리턴 System.Threading.Tasks.Task

ConnectAsync() 공개 메소드

public ConnectAsync ( EndPoint remoteAddress ) : System.Threading.Tasks.Task
remoteAddress System.Net.EndPoint
리턴 System.Threading.Tasks.Task

ConnectAsync() 공개 메소드

public ConnectAsync ( EndPoint remoteAddress, EndPoint localAddress ) : System.Threading.Tasks.Task
remoteAddress System.Net.EndPoint
localAddress System.Net.EndPoint
리턴 System.Threading.Tasks.Task

DeregisterAsync() 공개 메소드

public DeregisterAsync ( ) : System.Threading.Tasks.Task
리턴 System.Threading.Tasks.Task

DisconnectAsync() 공개 메소드

public DisconnectAsync ( ) : System.Threading.Tasks.Task
리턴 System.Threading.Tasks.Task

DoBeginRead() 보호된 추상적인 메소드

ScheduleAsync a read operation.
protected abstract DoBeginRead ( ) : void
리턴 void

DoBind() 보호된 추상적인 메소드

Bind the {@link Channel} to the {@link EndPoint}
protected abstract DoBind ( EndPoint localAddress ) : void
localAddress System.Net.EndPoint
리턴 void

DoClose() 보호된 추상적인 메소드

Close the {@link Channel}
protected abstract DoClose ( ) : void
리턴 void

DoDeregister() 보호된 메소드

Deregister the {@link Channel} from its {@link EventLoop}. Sub-classes may override this method
protected DoDeregister ( ) : void
리턴 void

DoDisconnect() 보호된 추상적인 메소드

Disconnect this {@link Channel} from its remote peer
protected abstract DoDisconnect ( ) : void
리턴 void

DoRegister() 보호된 메소드

Is called after the {@link Channel} is registered with its {@link EventLoop} as part of the register process. Sub-classes may override this method
protected DoRegister ( ) : void
리턴 void

DoWrite() 보호된 추상적인 메소드

Flush the content of the given buffer to the remote peer.
protected abstract DoWrite ( ChannelOutboundBuffer input ) : void
input ChannelOutboundBuffer
리턴 void

FilterOutboundMessage() 보호된 메소드

Invoked when a new message is added to a {@link ChannelOutboundBuffer} of this {@link AbstractChannel}, so that the {@link Channel} implementation converts the message to another. (e.g. heap buffer -> direct buffer)
protected FilterOutboundMessage ( object msg ) : object
msg object
리턴 object

Flush() 공개 메소드

public Flush ( ) : IChannel
리턴 IChannel

GetHashCode() 공개 메소드

public GetHashCode ( ) : int
리턴 int

InvalidateLocalAddress() 보호된 메소드

protected InvalidateLocalAddress ( ) : void
리턴 void

InvalidateRemoteAddress() 보호된 메소드

protected InvalidateRemoteAddress ( ) : void
리턴 void

IsCompatible() 보호된 추상적인 메소드

Return {@code true} if the given {@link EventLoop} is compatible with this instance.
protected abstract IsCompatible ( IEventLoop eventLoop ) : bool
eventLoop IEventLoop
리턴 bool

NewUnsafe() 보호된 추상적인 메소드

Create a new AbstractUnsafe instance which will be used for the life-time of the IChannel
protected abstract NewUnsafe ( ) : IChannelUnsafe
리턴 IChannelUnsafe

Read() 공개 메소드

public Read ( ) : IChannel
리턴 IChannel

ToString() 공개 메소드

public ToString ( ) : string
리턴 string

WriteAndFlushAsync() 공개 메소드

public WriteAndFlushAsync ( object message ) : System.Threading.Tasks.Task
message object
리턴 System.Threading.Tasks.Task

WriteAsync() 공개 메소드

public WriteAsync ( object message ) : System.Threading.Tasks.Task
message object
리턴 System.Threading.Tasks.Task