Property | Type | Description | |
---|---|---|---|
processorFactory | Protocol.IProcessorFactory | ||
transportFactory | ITransportFactory |
Method | Description | |
---|---|---|
BaseServer ( Protocol processorFactory, ITransportFactory transportFactory ) : System | ||
Serve ( ) : void |
Method | Description | |
---|---|---|
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 | |
return | System |
protected static handleClient ( Protocol processor ) : void | ||
processor | Protocol | /// the processor instance that represents the client /// |
return | void |
protected abstract serveClient ( Protocol processor ) : void | ||
processor | Protocol | /// the processor instance that represents the client /// |
return | void |
protected Protocol.IProcessorFactory processorFactory | ||
return | Protocol.IProcessorFactory |