mirror of
https://gitlab.com/Mr_Goldberg/goldberg_emulator.git
synced 2025-12-06 12:14:54 +01:00
Add a common include file.
This commit is contained in:
parent
25ee1dfa52
commit
fe9bbd1104
36 changed files with 236 additions and 250 deletions
|
|
@ -15,13 +15,10 @@
|
|||
License along with the Goldberg Emulator; if not, see
|
||||
<http://www.gnu.org/licenses/>. */
|
||||
|
||||
#include "base.h"
|
||||
|
||||
#ifndef NETWORK_INCLUDE
|
||||
#define NETWORK_INCLUDE
|
||||
|
||||
#include "net.pb.h"
|
||||
#include <chrono>
|
||||
#include "base.h"
|
||||
|
||||
inline bool protobuf_message_equal(const google::protobuf::MessageLite& msg_a,
|
||||
const google::protobuf::MessageLite& msg_b) {
|
||||
|
|
@ -38,8 +35,6 @@ typedef unsigned int sock_t;
|
|||
typedef int sock_t;
|
||||
#endif
|
||||
|
||||
bool check_timedout(std::chrono::high_resolution_clock::time_point old, double timeout);
|
||||
|
||||
struct IP_PORT {
|
||||
uint32 ip;
|
||||
uint16 port;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue