Files
portej05 719825f80d The big CVS comment removal. This chops approx. 3.5mb off a full checkout.
I've tested this through compiling and through hand checking. 
Normalises line endings in ALL files to \n.
2009-06-20 08:08:20 +00:00

52 lines
1.6 KiB
C

/*
* Copyright (C) Volition, Inc. 1999. All rights reserved.
*
* All source code herein is the property of Volition, Inc. You may not sell
* or otherwise commercially exploit the source or things you created based on the
* source.
*
*/
#ifndef _MULTIPLAYER_KICK_HEADER_FILE
#define _MULTIPLAYER_KICK_HEADER_FILE
// ----------------------------------------------------------------------------------
// KICK DEFINES/VARS
//
struct net_addr;
struct net_player;
// special reasons for kicking players
#define KICK_REASON_NORM 0 // plain old kick
#define KICK_REASON_BAD_XFER 1 // error xferring mission
#define KICK_REASON_CANT_XFER 2 // can't xfer a builtin mission
#define KICK_REASON_INGAME_ENDED 3 // kicked while ingame joining a mission about to end
// ----------------------------------------------------------------------------------
// KICK FUNCTIONS
//
// initialize all kicking details (ban lists, etc). it is safe to call this function at any time
void multi_kick_init();
// process all kick details (disconnecting players who have been kicked but haven't closed their socket)
void multi_kick_process();
// attempt to kick a player. return success or fail
void multi_kick_player(int player_index, int ban = 1, int reason = KICK_REASON_NORM);
// is this net address currently kicked and banded
int multi_kick_is_banned(net_addr *addr);
// debug console function called to determine which player to kick
void multi_dcf_kick();
// fill in the passed string with the appropriate "kicked" string
void multi_kick_get_text(net_player *pl, int reason, char *str);
#endif