udpSocket = new QUdpSocket(this); udpSocket->bind(QHostAddress("192.168.1.1"),5125); connect(udpSocket, SIGNAL(readyRead()), this, SLOT(processPendingDatagrams()));
C++ (Qt)udpSocket->bind( QHostAddress::Any, 5125 );// а лучшеudpSocket->bind( 5125, QUdpSocket::ShareAddress );
socket8202_ = new QUdpSocket; connect( socket8202_, SIGNAL( connected()), SLOT(connected())); connect( socket8202_, SIGNAL( disconnected()), SLOT(disconnected())); connect( socket8202_, SIGNAL( error(QAbstractSocket::SocketError)), SLOT(error(QAbstractSocket::SocketError))); connect( socket8202_, SIGNAL( readyRead()), SLOT(readyRead())); socket8202_->bind(8202);
arp -s 192.168.180.10 22-33-44-55-66-AA 192.168.108.4arp -s 192.168.180.11 22_33_44_55_66_AB 192.168.108.4arp -s 192.168.180.12 22_33_44_55_66_AC 192.168.108.4arp -s 192.168.180.13 22_33_44_55_66_AD 192.168.108.4arp -s 192.168.180.14 22_33_44_55_66_AE 192.168.108.4arp -s 192.168.180.15 22_33_44_55_66_AF 192.168.108.4arp -s 192.168.180.16 22_33_44_55_66_10 192.168.108.4arp -s 192.168.180.17 22_33_44_55_66_11 192.168.108.4