QuakeForge  0.7.2.210-815cf
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
General Functions

Macros

#define PORT_QTV   27501
 Default port to listen for connecting clients. More...
 

Enumerations

enum  redirect_t {
  RD_NONE, RD_CLIENT, RD_PACKET, RD_NONE,
  RD_CLIENT, RD_PACKET, RD_MOD
}
 

Functions

void qtv_begin_redirect (redirect_t rd, struct client_s *cl)
 Begin redirection of console printing. More...
 
void qtv_end_redirect (void)
 End redirection of console printing. More...
 
void qtv_printf (const char *fmt,...)
 Formatted console printing with possible redirection. More...
 
void qtv_sbar_init (void)
 

Variables

struct cbuf_args_sqtv_args
 
struct cbuf_sqtv_cbuf
 
double realtime
 
struct cvar_ssv_timeout
 

Detailed Description

Macro Definition Documentation

#define PORT_QTV   27501

Default port to listen for connecting clients.

Enumeration Type Documentation

enum redirect_t
Enumerator
RD_NONE 

No redirection. Default state.

RD_CLIENT 

Output is sent to a specific client connection.

RD_PACKET 

Output is sent as a connectionless packet.

RD_NONE 
RD_CLIENT 
RD_PACKET 
RD_MOD 

Function Documentation

void qtv_begin_redirect ( redirect_t  rd,
struct client_s cl 
)

Begin redirection of console printing.

All calls to qtv_printf() between a call to this and qtv_end_redirect() will be redirected.

Parameters
rdRedirection type.
clDestination client of redirected output. Ignored for RD_PACKET redirection, required for RD_CLIENT.
void qtv_end_redirect ( void  )

End redirection of console printing.

All calls to qtv_printf() between a call to qtv_begin_redirect() and this will be redirected.

Causes the redirected output to be flushed to the destination set by qtv_begin_redirect ();

void qtv_printf ( const char *  fmt,
  ... 
)

Formatted console printing with possible redirection.

Parameters are as per printf.

Calling qtv_begin_redirect() before, and qtv_end_redirect() after a series of calls will redirect output.

void qtv_sbar_init ( void  )

Variable Documentation

struct cbuf_args_s* qtv_args
struct cbuf_s* qtv_cbuf
double realtime
struct cvar_s* sv_timeout