C# Class Agnos.Servers.ThreadedServer

creates a thread-per-client to handle each client in parallel
Inheritance: BaseServer
显示文件 Open project: tomerfiliba/agnos Class Usage Examples

Public Methods

Method Description
ThreadedServer ( Protocol processorFactory, ITransportFactory transportFactory ) : System

Protected Methods

Method Description
serveClient ( Protocol processor ) : void
threadproc ( object obj ) : void

Method Details

ThreadedServer() public method

public ThreadedServer ( Protocol processorFactory, ITransportFactory transportFactory ) : System
processorFactory Protocol
transportFactory ITransportFactory
return System

serveClient() protected method

protected serveClient ( Protocol processor ) : void
processor Protocol
return void

threadproc() protected method

protected threadproc ( object obj ) : void
obj object
return void