프로퍼티 | 타입 | 설명 | |
---|---|---|---|
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, ...)
|
public BaseServer ( Protocol processorFactory, ITransportFactory transportFactory ) : System | ||
processorFactory | Protocol | |
transportFactory | ITransportFactory | |
리턴 | System |
protected static handleClient ( Protocol processor ) : void | ||
processor | Protocol | /// the processor instance that represents the client /// |
리턴 | void |
protected abstract serveClient ( Protocol processor ) : void | ||
processor | Protocol | /// the processor instance that represents the client /// |
리턴 | void |
protected Protocol.IProcessorFactory processorFactory | ||
리턴 | Protocol.IProcessorFactory |