C# 클래스 MSA.Zmq.JsonRpc.Router

Router is a device that will accept all client requests and forwarded to services and in turns forward the replies from services back to clients Pattern: ROUTER - DEALER + control channel
상속: JsonRpcZmqBase
파일 보기 프로젝트 열기: kadekcipta/ZmqJsonRpc

공개 메소드들

메소드 설명
Create ( uint frontendPort, uint backendPort, ZmqContext context ) : Router

Currently supports only single address *, no multihomed interface yet We will wait for other situation when it's needed

Router ( uint frontendPort, uint backendPort, ZmqContext context ) : System
Start ( ) : void
Stop ( ) : void

비공개 메소드들

메소드 설명
IsStopCommand ( string data ) : bool
PrepareSockets ( ) : void

+------------+ _____ W <--> | ROUTER | / W <--> o|B F|o <----- W <--> | DEALER | \_____ +------------+

RelayMessage ( ZmqSocket source, ZmqSocket destination ) : void
StartRouting ( ) : void
StopRouting ( ) : void
_backendSocket_ReceiveReady ( object sender, ZeroMQ.SocketEventArgs e ) : void
_backendSocket_SendReady ( object sender, ZeroMQ.SocketEventArgs e ) : void
_frontendSocket_ReceiveReady ( object sender, ZeroMQ.SocketEventArgs e ) : void
_frontendSocket_SendReady ( object sender, ZeroMQ.SocketEventArgs e ) : void

메소드 상세

Create() 공개 정적인 메소드

Currently supports only single address *, no multihomed interface yet We will wait for other situation when it's needed
public static Create ( uint frontendPort, uint backendPort, ZmqContext context ) : Router
frontendPort uint
backendPort uint
context ZmqContext
리턴 Router

Router() 공개 메소드

public Router ( uint frontendPort, uint backendPort, ZmqContext context ) : System
frontendPort uint
backendPort uint
context ZmqContext
리턴 System

Start() 공개 메소드

public Start ( ) : void
리턴 void

Stop() 공개 메소드

public Stop ( ) : void
리턴 void