# network_client.h

    00001 /* $Id: network_client.h 9050 2007-03-07 11:47:46Z rubidium $ */
    00002
    00003 #ifndef NETWORK_CLIENT_H
    00004 #define NETWORK_CLIENT_H
    00005
    00006 #ifdef ENABLE_NETWORK
    00007
    00008 DEF_CLIENT_SEND_COMMAND(PACKET_CLIENT_GAME_INFO);
    00009 DEF_CLIENT_SEND_COMMAND(PACKET_CLIENT_COMPANY_INFO);
    00010 DEF_CLIENT_SEND_COMMAND_PARAM(PACKET_CLIENT_COMMAND)(CommandPacket *cp);
    00011 DEF_CLIENT_SEND_COMMAND_PARAM(PACKET_CLIENT_ERROR)(NetworkErrorCode errorno);
    00012 DEF_CLIENT_SEND_COMMAND_PARAM(PACKET_CLIENT_QUIT)(const char *leavemsg);
    00013 DEF_CLIENT_SEND_COMMAND_PARAM(PACKET_CLIENT_CHAT)(NetworkAction action, DestType desttype, int dest, const char *msg);
    00014 DEF_CLIENT_SEND_COMMAND_PARAM(PACKET_CLIENT_PASSWORD)(NetworkPasswordType type, const char *password);
    00015 DEF_CLIENT_SEND_COMMAND_PARAM(PACKET_CLIENT_SET_PASSWORD)(const char *password);
    00016 DEF_CLIENT_SEND_COMMAND_PARAM(PACKET_CLIENT_SET_NAME)(const char *name);
    00017 DEF_CLIENT_SEND_COMMAND(PACKET_CLIENT_ACK);
    00018 DEF_CLIENT_SEND_COMMAND_PARAM(PACKET_CLIENT_RCON)(const char *pass, const char *command);
    00019
    00020 NetworkRecvStatus NetworkClient_ReadPackets(NetworkTCPSocketHandler *cs);
    00021 void NetworkClient_Connected();
    00022
    00023 #endif /* ENABLE_NETWORK */
    00024
    00025 #endif /* NETWORK_CLIENT_H */