QUdpSocket Class Reference
[QtNetwork module]
Inherits QAbstractSocket.
Types
- enum BindFlag { DefaultForPlatform, ShareAddress, DontShareAddress, ReuseAddressHint }
- class BindMode
Methods
- __init__ (self, QObject parent = None)
- bool bind (self, QHostAddress, int)
- bool bind (self, int port = 0)
- bool bind (self, QHostAddress, int, BindMode)
- bool bind (self, int, BindMode)
- bool hasPendingDatagrams (self)
- int pendingDatagramSize (self)
- (str, QHostAddress host, int port) readDatagram (self, int maxlen)
- int writeDatagram (self, str, QHostAddress, int)
- int writeDatagram (self, QByteArray, QHostAddress, int)
Detailed Description
Type Documentation
QUdpSocket.BindFlag
Method Documentation
QUdpSocket.__init__ (self, QObject parent = None)
The parent argument, if not None, causes self to be owned by Qt instead of PyQt.
bool QUdpSocket.bind (self, QHostAddress, int)
bool QUdpSocket.bind (self, int port = 0)
bool QUdpSocket.bind (self, int, BindMode)
bool QUdpSocket.hasPendingDatagrams (self)
int QUdpSocket.pendingDatagramSize (self)
(str, QHostAddress host, int port) QUdpSocket.readDatagram (self, int maxlen)
int QUdpSocket.writeDatagram (self, str, QHostAddress, int)