#ifndef NET_MULTIPLAYER_H #define NET_MULTIPLAYER_H #include "main.h" #include "tux.h" #include "item.h" #include "arena.h" #define PROTO_UDPv4 0 #define PROTO_UDPv6 1 #define NET_GAME_TYPE_NONE 0 #define NET_GAME_TYPE_SERVER 1 #define NET_GAME_TYPE_CLIENT 2 #define NET_STATUS_OK 0 #define NET_STATUS_ZOMBIE 1 #define NET_PROTOCOL_TYPE_TCP 0 #define NET_PROTOCOL_TYPE_UDP 1 #define LIMIT_BUFFER 10240 #define NET_MASTER_SERVER_DOMAIN "ms.tuxanci.org" #define NET_MASTER_SERVER "83.167.234.16" #define NET_MASTER_PORT 6800 #ifdef PUBLIC_SERVER extern int net_multiplayer_init_for_game_server(char *ip4, char *ip6, int port); #endif /* PUBLIC_SERVER */ extern int net_multiplayer_init(int type, char *ip, int port, int proto); extern int net_multiplayer_get_game_type(); extern void net_multiplayer_event(); extern void net_multiplayer_quit(); #endif /* NET_MULTIPLAYER_H */