UdpConnection::~UdpConnection()
{
	assert( m_listenersCollection.empty() );

	QObject::disconnect(m_udpSocket, SIGNAL( readyRead() ), this, SLOT( onReadReady() ) );

} // UdpConnection::~UdpConnection
UdpConnection::UdpConnection(
		const ConnectionInfo& _connectionInfo
	,	const quint32 _connectionTimeOut
	,	QObject* _parent
	)
	:	QObject( _parent )
	,	m_connectionInfo( _connectionInfo )
	,	m_udpSocket( new QUdpSocket( this ) )
	,	m_listenersCollection()
{
	m_udpSocket->bind( createHostAddress( m_connectionInfo.m_address ), m_connectionInfo.m_port );

	QObject::connect(m_udpSocket, SIGNAL( readyRead() ), this, SLOT( onReadReady() ) );

} // UdpConnection::UdpConnection
RawData::RawData(QAbstractSocket* socket):mSocket(socket)
{
    QObject::connect(mSocket,SIGNAL(readyRead()),this,SLOT(onReadReady()));
}
UdpDetector::UdpDetector() {
    socket = new QUdpSocket(this);
    connect(socket, SIGNAL(readyRead()), this, SLOT(onReadReady()));
}