bug-commoncpp
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: change of socketport constructor


From: klaus triendl
Subject: RE: change of socketport constructor
Date: Fri, 18 Apr 2003 18:32:18 +0200

now, here is the patch (against the commoncpp2-1.0.9 release, hope this is
ok);
apply it in the root of commoncpp2 with ``patch -p1 < ccgnu2.diff"; only
``include/cc++/socket.h" and ``src/port.cpp" are patched;


what it does:

change ``SocketPort::SocketPort()" not to accept a service anymore;
change ``void SocketPort::expired()" in ``bool SocketPort::expired()";
don't proceed with ``retry:" and don't put the port into the event array if
expired() returns true
SocketService::~SocketService iterates the socketports itself and sets
SocketPort::service = NULL before deleting SocketPort in order to prevent
updating the SocketService
change SocketService::detach() not to update the service
SocketPort::setTimer()+incTimer() don't update the service anymore
adds SocketPort::detach() to be able to detach from the SocketService in
e.g. expired() (i need this because the data processing is threaded because
it could take a long time, so it is possible that the socket expires and is
closed before the data processing finishes)

Attachment: ccgnu2.diff
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]