src/network/network_server.h
branchcpp_gui
changeset 6298 c30fe89622df
parent 5875 4a1391019791
child 10429 1b99254f9607
equal deleted inserted replaced
6297:4bf29d14edba 6298:c30fe89622df
    15 bool NetworkFindName(char new_name[NETWORK_CLIENT_NAME_LENGTH]);
    15 bool NetworkFindName(char new_name[NETWORK_CLIENT_NAME_LENGTH]);
    16 void NetworkServer_HandleChat(NetworkAction action, DestType type, int dest, const char *msg, uint16 from_index);
    16 void NetworkServer_HandleChat(NetworkAction action, DestType type, int dest, const char *msg, uint16 from_index);
    17 
    17 
    18 bool NetworkServer_ReadPackets(NetworkTCPSocketHandler *cs);
    18 bool NetworkServer_ReadPackets(NetworkTCPSocketHandler *cs);
    19 void NetworkServer_Tick(bool send_frame);
    19 void NetworkServer_Tick(bool send_frame);
    20 void NetworkServerMonthlyLoop(void);
    20 void NetworkServerMonthlyLoop();
    21 void NetworkServerYearlyLoop(void);
    21 void NetworkServerYearlyLoop();
    22 
    22 
    23 static inline const char* GetPlayerIP(const NetworkClientInfo* ci)
    23 static inline const char* GetPlayerIP(const NetworkClientInfo* ci)
    24 {
    24 {
    25 	struct in_addr addr;
    25 	struct in_addr addr;
    26 
    26 
    29 }
    29 }
    30 
    30 
    31 #else /* ENABLE_NETWORK */
    31 #else /* ENABLE_NETWORK */
    32 /* Network function stubs when networking is disabled */
    32 /* Network function stubs when networking is disabled */
    33 
    33 
    34 static inline void NetworkServerMonthlyLoop(void) {}
    34 static inline void NetworkServerMonthlyLoop() {}
    35 static inline void NetworkServerYearlyLoop(void) {}
    35 static inline void NetworkServerYearlyLoop() {}
    36 
    36 
    37 #endif /* ENABLE_NETWORK */
    37 #endif /* ENABLE_NETWORK */
    38 
    38 
    39 #endif /* NETWORK_SERVER_H */
    39 #endif /* NETWORK_SERVER_H */