network_server.h
changeset 2538 81e192bfcf10
parent 2436 177cb6a8339f
child 2548 97ada3bd2702
equal deleted inserted replaced
2537:d9c0df52a466 2538:81e192bfcf10
    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 */