# network_client.h

Go to the documentation of this file.

    00001 /* $Id: network_client.h 15242 2009-01-23 22:18:06Z rubidium $ */
    00002
    00005 #ifndef NETWORK_CLIENT_H
    00006 #define NETWORK_CLIENT_H
    00007
    00008 #ifdef ENABLE_NETWORK
    00009
    00010 DEF_CLIENT_SEND_COMMAND(PACKET_CLIENT_GAME_INFO);
    00011 DEF_CLIENT_SEND_COMMAND(PACKET_CLIENT_COMPANY_INFO);
    00012 DEF_CLIENT_SEND_COMMAND_PARAM(PACKET_CLIENT_COMMAND)(const CommandPacket *cp);
    00013 DEF_CLIENT_SEND_COMMAND_PARAM(PACKET_CLIENT_ERROR)(NetworkErrorCode errorno);
    00014 DEF_CLIENT_SEND_COMMAND_PARAM(PACKET_CLIENT_QUIT)();
    00015 DEF_CLIENT_SEND_COMMAND_PARAM(PACKET_CLIENT_CHAT)(NetworkAction action, DestType desttype, int dest, const char *msg, int64 data);
    00016 DEF_CLIENT_SEND_COMMAND_PARAM(PACKET_CLIENT_PASSWORD)(NetworkPasswordType type, const char *password);
    00017 DEF_CLIENT_SEND_COMMAND_PARAM(PACKET_CLIENT_SET_PASSWORD)(const char *password);
    00018 DEF_CLIENT_SEND_COMMAND_PARAM(PACKET_CLIENT_SET_NAME)(const char *name);
    00019 DEF_CLIENT_SEND_COMMAND(PACKET_CLIENT_ACK);
    00020 DEF_CLIENT_SEND_COMMAND_PARAM(PACKET_CLIENT_RCON)(const char *pass, const char *command);
    00021 DEF_CLIENT_SEND_COMMAND_PARAM(PACKET_CLIENT_MOVE)(CompanyID company, const char *pass);
    00022
    00023 NetworkRecvStatus NetworkClient_ReadPackets(NetworkClientSocket *cs);
    00024 void NetworkClient_Connected();
    00025
    00026 #endif /* ENABLE_NETWORK */
    00027
    00028 #endif /* NETWORK_CLIENT_H */