equal
deleted
inserted
replaced
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 */ |