1
General discussions / Re: Portability Verion 1.6 to 2.0
« on: February 03, 2013, 03:24:08 pm »
Oh sorry, I didn't had my coffee at that minute so I didn't realized your answer
I just came to another thing (I don't want to start a new thread on this one).. I decided to use v2.0 so I don't have to port the whole thing later on.. Since my project is just at the beginning phase this isn't such big a deal.
Well... I saw that Socket::close() is now a protected member which leads me to the question how the connection is closed if I didn't derived e.g. UdpSocket, instead, using this as a member. I guess, that Socket::close() is called in the destructor, isn't it? If so, you might should add a line to the documentation but anyway.. how am I supposed to close an UdpSocket now?
I just came to another thing (I don't want to start a new thread on this one).. I decided to use v2.0 so I don't have to port the whole thing later on.. Since my project is just at the beginning phase this isn't such big a deal.
Well... I saw that Socket::close() is now a protected member which leads me to the question how the connection is closed if I didn't derived e.g. UdpSocket, instead, using this as a member. I guess, that Socket::close() is called in the destructor, isn't it? If so, you might should add a line to the documentation but anyway.. how am I supposed to close an UdpSocket now?
/**
* Destructor
*/
AcceptUDPConnectionThread::~AcceptUDPConnectionThread()
{
if(m_udpSocket) {
m_udpSocket->close(); // called in Socket::~Socket() ?
delete m_udpSocket;
m_udpSocket = 0;
}
}
* Destructor
*/
AcceptUDPConnectionThread::~AcceptUDPConnectionThread()
{
if(m_udpSocket) {
m_udpSocket->close(); // called in Socket::~Socket() ?
delete m_udpSocket;
m_udpSocket = 0;
}
}