Ok, I think I'm ready to start writing a pool code. One thing is still unclear to me: how to check if connection is closed or opened. >>> That is correct. The question then is, how do you know connection >>> was closed, while it is in the m_connections list. >>> >> >> Now I'm not sure if it's possible. Maybe sptk' CDatabase has methods to >> check if a connection is opened or closed? >> >I guess that's a question to Alexey... I checked sptk' DB classes, there is a bool CDatabase::active() function, but it's not implemented. Maybe there are other ways to do it?
Authoright © Total Knowledge: 2001-2008