C# 클래스 NetMQ.Core.Utils.Poller

상속: PollerBase
파일 보기 프로젝트 열기: NetMQ/NetMQ3-x 1 사용 예제들

공개 메소드들

메소드 설명
AddHandle ( [ handle, [ events ) : void

Add a new PollSet containing the given Socket and IPollEvents at the next iteration through the loop, and also add the Socket to the list of those to check for errors.

Destroy ( ) : void

Unless the polling-loop is already stopped, tell it to stop at the end of the current polling iteration, and wait for that thread to finish.

Poller ( [ name ) : System

Create a new Poller object with the given name.

RemoveHandle ( [ handle ) : void

Remove the given Socket from this Poller.

SetPollIn ( Socket handle ) : void

Add the given Socket to the list to be checked for read-readiness at each poll-iteration.

Start ( ) : void

Begin running the polling-loop, on a background thread.

The name of that background-thread is the same as the name of this Poller object.

Stop ( ) : void

Signal that we want to stop the polling-loop. This method returns immediately - it does not wait for the polling thread to stop.

비공개 메소드들

메소드 설명
Loop ( ) : void

This method is the polling-loop that is invoked on a background thread when Start is called. As long as Stop hasn't been called: execute the timers, and invoke the handler-methods on each of the saved PollSets.

메소드 상세

AddHandle() 공개 메소드

Add a new PollSet containing the given Socket and IPollEvents at the next iteration through the loop, and also add the Socket to the list of those to check for errors.
public AddHandle ( [ handle, [ events ) : void
handle [ the Socket to add
events [ the IPollEvents to include in the new PollSet to add
리턴 void

Destroy() 공개 메소드

Unless the polling-loop is already stopped, tell it to stop at the end of the current polling iteration, and wait for that thread to finish.
public Destroy ( ) : void
리턴 void

Poller() 공개 메소드

Create a new Poller object with the given name.
public Poller ( [ name ) : System
name [ a name to assign to this Poller
리턴 System

RemoveHandle() 공개 메소드

Remove the given Socket from this Poller.
public RemoveHandle ( [ handle ) : void
handle [ the System.Net.Sockets.Socket to remove
리턴 void

SetPollIn() 공개 메소드

Add the given Socket to the list to be checked for read-readiness at each poll-iteration.
public SetPollIn ( Socket handle ) : void
handle System.Net.Sockets.Socket the Socket to add
리턴 void

Start() 공개 메소드

Begin running the polling-loop, on a background thread.
The name of that background-thread is the same as the name of this Poller object.
public Start ( ) : void
리턴 void

Stop() 공개 메소드

Signal that we want to stop the polling-loop. This method returns immediately - it does not wait for the polling thread to stop.
public Stop ( ) : void
리턴 void