void start_server() { enet_init_server(2300,4,_str("")); while(enet_get_connection() == 1) { enet_server_poll(); wait(1); } }
if(enet_get_connection() == 0) {error("Keine Verbindung!");} if(enet_get_connection() == 1) {error("Server!");} if(enet_get_connection() == 2) {error("Client!");} if(enet_get_connection() == 3) {error("Client-Server!");}
void main() { enet_init(); start_server(); wait(-1); check_status(); }
Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy
oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de