C# 클래스 Agnos.Servers.BaseServer

The base class of all Agnos servers. note that you're not required to extend this class in order to be implement a server -- it's just a place to store all of the common logic
파일 보기 프로젝트 열기: tomerfiliba/agnos 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
processorFactory Protocol.IProcessorFactory
transportFactory ITransportFactory

공개 메소드들

메소드 설명
BaseServer ( Protocol processorFactory, ITransportFactory transportFactory ) : System
Serve ( ) : void

보호된 메소드들

메소드 설명
handleClient ( Protocol processor ) : void

the basic client handler -- calls processor.process in a loop, until the client disconnects

serveClient ( Protocol processor ) : void

implement this method to serve the client in whatever which way is appropriate (blocking, threaded, forking, threadpool, ...)

메소드 상세

BaseServer() 공개 메소드

public BaseServer ( Protocol processorFactory, ITransportFactory transportFactory ) : System
processorFactory Protocol
transportFactory ITransportFactory
리턴 System

Serve() 공개 메소드

public Serve ( ) : void
리턴 void

handleClient() 보호된 정적인 메소드

the basic client handler -- calls processor.process in a loop, until the client disconnects
protected static handleClient ( Protocol processor ) : void
processor Protocol /// the processor instance that represents the client ///
리턴 void

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

implement this method to serve the client in whatever which way is appropriate (blocking, threaded, forking, threadpool, ...)
protected abstract serveClient ( Protocol processor ) : void
processor Protocol /// the processor instance that represents the client ///
리턴 void

프로퍼티 상세

processorFactory 보호되어 있는 프로퍼티

protected Protocol.IProcessorFactory processorFactory
리턴 Protocol.IProcessorFactory

transportFactory 보호되어 있는 프로퍼티

protected ITransportFactory transportFactory
리턴 ITransportFactory