GH #93: ParallelSocketAcceptor virtual functions
- fixed GH #93: ParallelSocketAcceptor virtual functions - updated CHANGELOG
This commit is contained in:
Родитель
c1af36b973
Коммит
7354713433
|
@ -104,13 +104,13 @@ public:
|
||||||
registerAcceptor(reactor);
|
registerAcceptor(reactor);
|
||||||
}
|
}
|
||||||
|
|
||||||
~ParallelSocketAcceptor()
|
virtual ~ParallelSocketAcceptor()
|
||||||
/// Destroys the ParallelSocketAcceptor.
|
/// Destroys the ParallelSocketAcceptor.
|
||||||
{
|
{
|
||||||
unregisterAcceptor();
|
unregisterAcceptor();
|
||||||
}
|
}
|
||||||
|
|
||||||
void registerAcceptor(SocketReactor& reactor)
|
virtual void registerAcceptor(SocketReactor& reactor)
|
||||||
/// Registers the ParallelSocketAcceptor with a SocketReactor.
|
/// Registers the ParallelSocketAcceptor with a SocketReactor.
|
||||||
///
|
///
|
||||||
/// A subclass can override this and, for example, also register
|
/// A subclass can override this and, for example, also register
|
||||||
|
@ -124,7 +124,7 @@ public:
|
||||||
ReadableNotification>(*this, &ParallelSocketAcceptor::onAccept));
|
ReadableNotification>(*this, &ParallelSocketAcceptor::onAccept));
|
||||||
}
|
}
|
||||||
|
|
||||||
void unregisterAcceptor()
|
virtual void unregisterAcceptor()
|
||||||
/// Unregisters the ParallelSocketAcceptor.
|
/// Unregisters the ParallelSocketAcceptor.
|
||||||
///
|
///
|
||||||
/// A subclass can override this and, for example, also unregister
|
/// A subclass can override this and, for example, also unregister
|
||||||
|
@ -146,7 +146,7 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
ServiceHandler* createServiceHandler(StreamSocket& socket)
|
virtual ServiceHandler* createServiceHandler(StreamSocket& socket)
|
||||||
/// Create and initialize a new ServiceHandler instance.
|
/// Create and initialize a new ServiceHandler instance.
|
||||||
///
|
///
|
||||||
/// Subclasses can override this method.
|
/// Subclasses can override this method.
|
||||||
|
|
|
@ -88,7 +88,7 @@ class SocketAcceptor
|
||||||
/// Subclasses can override the createServiceHandler() factory method
|
/// Subclasses can override the createServiceHandler() factory method
|
||||||
/// if special steps are necessary to create a ServiceHandler object.
|
/// if special steps are necessary to create a ServiceHandler object.
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
explicit SocketAcceptor(ServerSocket& socket):
|
explicit SocketAcceptor(ServerSocket& socket):
|
||||||
_socket(socket),
|
_socket(socket),
|
||||||
_pReactor(0)
|
_pReactor(0)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче