C# Class 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
Afficher le fichier Open project: tomerfiliba/agnos Class Usage Examples

Protected Properties

Свойство Type Description
processorFactory Protocol.IProcessorFactory
transportFactory ITransportFactory

Méthodes publiques

Méthode Description
BaseServer ( Protocol processorFactory, ITransportFactory transportFactory ) : System
Serve ( ) : void

Méthodes protégées

Méthode 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, ...)

Method Details

BaseServer() public méthode

public BaseServer ( Protocol processorFactory, ITransportFactory transportFactory ) : System
processorFactory Protocol
transportFactory ITransportFactory
Résultat System

Serve() public méthode

public Serve ( ) : void
Résultat void

handleClient() protected static méthode

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 ///
Résultat void

serveClient() protected abstract méthode

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 ///
Résultat void

Property Details

processorFactory protected_oe property

protected Protocol.IProcessorFactory processorFactory
Résultat Protocol.IProcessorFactory

transportFactory protected_oe property

protected ITransportFactory transportFactory
Résultat ITransportFactory