# network.h

Go to the documentation of this file.

    00001 /* $Id: network.h 14422 2008-09-30 20:51:04Z rubidium $ */
    00002
    00005 #ifndef NETWORK_H
    00006 #define NETWORK_H
    00007
    00008 #include "../company_type.h"
    00009
    00010 #ifdef ENABLE_NETWORK
    00011
    00012 void NetworkStartUp();
    00013 void NetworkShutDown();
    00014 void NetworkDrawChatMessage();
    00015
    00016 extern bool _networking;
    00017 extern bool _network_server;
    00018 extern bool _network_available;
    00019 extern bool _network_dedicated;
    00020 extern bool _is_network_server;
    00021
    00022 #else /* ENABLE_NETWORK */
    00023 /* Network function stubs when networking is disabled */
    00024
    00025 static inline void NetworkStartUp() {}
    00026 static inline void NetworkShutDown() {}
    00027 static inline void NetworkDrawChatMessage() {}
    00028
    00029 #define _networking 0
    00030 #define _network_server 0
    00031 #define _network_available 0
    00032 #define _network_dedicated 0
    00033 #define _is_network_server 0
    00034
    00035 #endif /* ENABLE_NETWORK */
    00036
    00038 extern CompanyID _network_playas;
    00039
    00040 #endif /* NETWORK_H */