PDA

View Full Version : QUdpSocket::writeDatagram problems



rapham
17th December 2011, 18:39
Hallo

In my Qt projekt i need the function

qint64 QUdpSocket::writeDatagram ( const char * data, qint64 size, const QHostAddress & address, quint16 port )

But i don't now what i have to give the function.

Please say me, what do I false. I want sent "1".
my solution

qint64 QUdpSocket::writeDatagram (1, 1, 2851995650, 2000 )
2851995650 should be the ip adress (169.254.1.2)

thans for you help
rapham