![]() |
Freeciv21
Develop your civilization from humble roots to a global empire
|
#include <servers.h>
Inheritance diagram for fcUdpScan:
Collaboration diagram for fcUdpScan:Public Slots | |
| void | readPendingDatagrams () |
Public Member Functions | |
| ~fcUdpScan () override=default | |
| bool | begin_scan (struct server_scan *scan) |
| Broadcast an UDP package to all servers on LAN, requesting information about the server. More... | |
| enum server_scan_status | get_server_list (struct server_scan *scan) |
| Listens for UDP packets broadcasted from a server that responded to the request-packet sent from the client. More... | |
Static Public Member Functions | |
| static void | drop () |
| deletes fcUdpScan More... | |
| static fcUdpScan * | i () |
| returns fcUdpScan instance, use it to initizalize fcUdpScan or for calling methods More... | |
Private Slots | |
| void | sockError (QAbstractSocket::SocketError socketError) |
| Pass errors to main scan. More... | |
Private Member Functions | |
| fcUdpScan (QObject *parent=0) | |
Private Attributes | |
| struct server_scan * | fcudp_scan |
| QList< QNetworkDatagram > | datagram_list |
Static Private Attributes | |
| static fcUdpScan * | m_instance = 0 |
|
overridedefault |
|
private |
Definition at line 66 of file servers.cpp.
Referenced by i().
| bool fcUdpScan::begin_scan | ( | struct server_scan * | scan | ) |
Broadcast an UDP package to all servers on LAN, requesting information about the server.
The packet is send to all Freeciv21 servers in the same multicast group as the client.
Definition at line 115 of file servers.cpp.
Referenced by server_scan_begin().
|
static |
deletes fcUdpScan
Definition at line 104 of file servers.cpp.
| enum server_scan_status fcUdpScan::get_server_list | ( | struct server_scan * | scan | ) |
Listens for UDP packets broadcasted from a server that responded to the request-packet sent from the client.
Definition at line 156 of file servers.cpp.
|
static |
returns fcUdpScan instance, use it to initizalize fcUdpScan or for calling methods
Definition at line 79 of file servers.cpp.
Referenced by server_scan_begin().
|
slot |
Definition at line 156 of file servers.cpp.
Referenced by fcUdpScan().
|
privateslot |
|
private |
Definition at line 46 of file servers.h.
Referenced by get_server_list().
|
private |
Definition at line 43 of file servers.h.
Referenced by begin_scan(), fcUdpScan(), and sockError().