network_server.h
changeset 2538 2e9c118c5e93
parent 2436 7d5df545bd5d
child 2548 49c8a096033f
equal deleted inserted replaced
2537:5e4ca74e995a 2538:2e9c118c5e93
    18 bool NetworkServer_ReadPackets(NetworkClientState *cs);
    18 bool NetworkServer_ReadPackets(NetworkClientState *cs);
    19 void NetworkServer_Tick(bool send_frame);
    19 void NetworkServer_Tick(bool send_frame);
    20 void NetworkServerMonthlyLoop(void);
    20 void NetworkServerMonthlyLoop(void);
    21 void NetworkServerYearlyLoop(void);
    21 void NetworkServerYearlyLoop(void);
    22 
    22 
       
    23 static inline const char* GetPlayerIP(const NetworkClientInfo *ci) {return inet_ntoa(*(struct in_addr *)&ci->client_ip);}
       
    24 
    23 #endif /* ENABLE_NETWORK */
    25 #endif /* ENABLE_NETWORK */
    24 
    26 
    25 #endif /* NETWORK_SERVER_H */
    27 #endif /* NETWORK_SERVER_H */