#include <mbroadcastsocketdevice.h>
Public Member Functions | |
| MBroadcastSocketDevice (QString sAddress, quint16 nPort) | |
| virtual | ~MBroadcastSocketDevice () |
| virtual QHostAddress | address () const |
| virtual quint16 | port () const |
Private Attributes | |
| QHostAddress | m_address |
| quint16 | m_port |
| struct ip_mreq | m_imr |
Definition at line 25 of file mbroadcastsocketdevice.h.
| MBroadcastSocketDevice::MBroadcastSocketDevice | ( | QString | sAddress, | |
| quint16 | nPort | |||
| ) | [inline] |
Definition at line 28 of file mbroadcastsocketdevice.h.
| virtual MBroadcastSocketDevice::~MBroadcastSocketDevice | ( | ) | [inline, virtual] |
Definition at line 51 of file mbroadcastsocketdevice.h.
| virtual QHostAddress MBroadcastSocketDevice::address | ( | ) | const [inline, virtual] |
Returns the address of this socket device. This may be 0.0.0.0 for a while, but is set to something sensible as soon as a sensible value is available.
Reimplemented from MSocketDevice.
Definition at line 57 of file mbroadcastsocketdevice.h.
| virtual quint16 MBroadcastSocketDevice::port | ( | ) | const [inline, virtual] |
Returns the port number of this socket device. This may be 0 for a while, but is set to something sensible as soon as a sensible value is available.
Note that Qt always uses native byte order, i.e. 67 is 67 in Qt; there is no need to call htons().
Reimplemented from MSocketDevice.
Definition at line 58 of file mbroadcastsocketdevice.h.
QHostAddress MBroadcastSocketDevice::m_address [private] |
Definition at line 61 of file mbroadcastsocketdevice.h.
Referenced by address(), and MBroadcastSocketDevice().
quint16 MBroadcastSocketDevice::m_port [private] |
Definition at line 62 of file mbroadcastsocketdevice.h.
Referenced by MBroadcastSocketDevice(), and port().
struct ip_mreq MBroadcastSocketDevice::m_imr [private] |
Definition at line 63 of file mbroadcastsocketdevice.h.
1.6.3