All pastes #85420 Raw Edit

Something

public c v1 · immutable
·published 2006-07-11 22:42 UTC
rendered paste body
static intenet_protocol_handle_incoming_commands (ENetHost * host, ENetEvent * event){    ENetProtocolHeader * header;    ENetProtocol * command;    ENetPeer * peer;    enet_uint8 * currentData;    size_t headerSize;    enet_uint16 peerID, flags;    if (host -> receivedDataLength < sizeof (ENetProtocolHeader))      return 0;#ifdef __FREEGS        fgs_cur_host=host;        fgs_uuid_t player;        int ret;        if(fgs_get_player_tcp(fgs_ctx, &player, host->receivedAddress.host) != FGS_OK) {                if((ret=fgs_new_player_tcp(fgs_ctx, &player, host->receivedAddress.host, FALSE))!=FGS_OK)                        printf("New player failed!:%d\n", ret);                printf("New player %s\n", player);                fgs_join_match(fgs_ctx, fgs_match, player);                fgs_cur_host=NULL;        }#endif