summaryrefslogtreecommitdiff
path: root/src/network/core/udp.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/network/core/udp.h')
-rw-r--r--src/network/core/udp.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/network/core/udp.h b/src/network/core/udp.h
index 2302dab0d..6f68c213d 100644
--- a/src/network/core/udp.h
+++ b/src/network/core/udp.h
@@ -90,6 +90,15 @@ enum PacketUDPType {
PACKET_UDP_END ///< Must ALWAYS be on the end of this list!! (period)
};
+/** The types of server lists we can get */
+enum ServerListType {
+ SLT_IPv4 = 0, ///< Get the IPv4 addresses
+ SLT_IPv6 = 1, ///< Get the IPv6 addresses
+ SLT_AUTODETECT, ///< Autodetect the type based on the connection
+
+ SLT_END = SLT_AUTODETECT ///< End of 'arrays' marker
+};
+
#define DECLARE_UDP_RECEIVE_COMMAND(type) virtual void NetworkPacketReceive_## type ##_command(Packet *p, NetworkAddress *client_addr)
#define DEF_UDP_RECEIVE_COMMAND(cls, type) void cls ##NetworkUDPSocketHandler::NetworkPacketReceive_ ## type ## _command(Packet *p, NetworkAddress *client_addr)