Omega Security Services 0.7.3

protocol.h File Reference

Go to the source code of this file.

Data Structures

struct  IRCDProto

Functions

int protocol_init ()
int protocol_open (char *filename)
void add_protocol (char *name, char *version, char *author, int ts6)
void addu_modes (int mode, uint32 bits, uint32 flags)
void addp_connect (void(*func)())
void addp_oper (void(*func)(char *source, char *opertype))
void addp_add_user (void(*func)(User *))
void addp_ping (void(*func)(char *source))
void addp_wallop (void(*func)(char *source, char *msg))
void addp_xline (void(*func)(char *xline, char *source, char *mask, char *reason))
void addp_version (void(*func)(User *))
void addp_join (void(*func)(User *, Channel *))
void addp_part (void(*func)(User *, Channel *, char *))
void addp_set_cmod (void(*func)(Channel *, int, char *))
void addp_set_umode (void(*func)(User *, int, char *))
void addp_umode (void(*func)(User *, char *))
void addp_mode (void(*func)(User *, Channel *, char *))
void addp_server (void(*func)(Link *))
void ircd_connect ()
void ircd_add_user (User *)
void ircd_ping (char *source)
void ircd_oper (char *source, char *opertype)
void ircd_wallop (char *source, char *msg,...)
void ircd_xline (char *xline, char *source, char *mask, char *reason,...)
void ircd_version (User *)
void ircd_join (User *, Channel *)
void ircd_set_cmode (Channel *c, int argc, char *modes)
void ircd_set_umode (User *u, int argc, char *modes)
void ircd_mode (User *, Channel *, char *)
void ircd_umode (User *, char *)
void ircd_kill (User *, char *)
void ircd_server (Link *)
void ircd_null ()

Variables

char * ircd_umodes [128]
IRCDProto IRCd

Function Documentation

void add_protocol ( char *  name,
char *  version,
char *  author,
int  ts6 
)
void addp_add_user ( void(*)(User *)  func)
void addp_connect ( void(*)()  func)

Definition at line 103 of file protocol.c.

References IRCDProto::ircd_connect.

void addp_join ( void(*)(User *, Channel *)  func)

Definition at line 148 of file protocol.c.

References IRCDProto::ircd_join.

void addp_mode ( void(*)(User *, Channel *, char *)  func)

Definition at line 158 of file protocol.c.

References IRCDProto::ircd_mode.

void addp_oper ( void(*)(char *source, char *opertype)  func)

Definition at line 108 of file protocol.c.

References IRCDProto::ircd_oper.

void addp_part ( void(*)(User *, Channel *, char *)  func)

Definition at line 153 of file protocol.c.

References IRCDProto::ircd_part.

void addp_ping ( void(*)(char *source func)

Definition at line 118 of file protocol.c.

References IRCDProto::ircd_ping.

void addp_server ( void(*)(Link *)  func)

Definition at line 173 of file protocol.c.

References IRCDProto::ircd_server.

void addp_set_cmod ( void(*)(Channel *, int, char *)  func)
void addp_set_umode ( void(*)(User *, int, char *)  func)

Definition at line 143 of file protocol.c.

References IRCDProto::ircd_set_umode.

void addp_umode ( void(*)(User *, char *)  func)

Definition at line 163 of file protocol.c.

References IRCDProto::ircd_umode.

void addp_version ( void(*)(User *)  func)
void addp_wallop ( void(*)(char *source, char *msg)  func)

Definition at line 123 of file protocol.c.

References IRCDProto::ircd_wallop.

void addp_xline ( void(*)(char *xline, char *source, char *mask, char *reason)  func)

Definition at line 128 of file protocol.c.

References IRCDProto::ircd_xline.

void addu_modes ( int  mode,
uint32  bits,
uint32  flags 
)
void ircd_add_user ( User *  )

Definition at line 234 of file protocol.c.

References IRCDProto::ircd_add_user.

Referenced by foo_connect(), introduce_users(), and NewClient().

void ircd_connect ( )

Definition at line 223 of file protocol.c.

References IRCDProto::ircd_connect.

Referenced by ev_connectuplink(), and Run().

void ircd_join ( User *  ,
Channel  
)

Definition at line 277 of file protocol.c.

References IRCDProto::ircd_join.

Referenced by AddToChannelU(), and burst_local_users().

void ircd_kill ( User *  ,
char *   
)

Definition at line 287 of file protocol.c.

References IRCDProto::ircd_kill.

void ircd_mode ( User *  ,
Channel ,
char *   
)

Definition at line 180 of file protocol.c.

References IRCDProto::ircd_mode.

void ircd_null ( )

Definition at line 198 of file protocol.c.

Referenced by protocol_init().

void ircd_oper ( char *  source,
char *  opertype 
)

Definition at line 244 of file protocol.c.

References IRCDProto::ircd_oper.

void ircd_ping ( char *  source)

Definition at line 239 of file protocol.c.

References IRCDProto::ircd_ping.

Referenced by ev_ping().

void ircd_server ( Link )

Definition at line 228 of file protocol.c.

References IRCDProto::ircd_server.

Referenced by burst_local_servers().

void ircd_set_cmode ( Channel c,
int  argc,
char *  modes 
)

Definition at line 266 of file protocol.c.

References IRCDProto::ircd_set_cmode.

void ircd_set_umode ( User *  u,
int  argc,
char *  modes 
)

Definition at line 271 of file protocol.c.

References IRCDProto::ircd_set_umode.

void ircd_umode ( User *  ,
char *   
)

Definition at line 188 of file protocol.c.

References IRCDProto::ircd_umode.

void ircd_version ( User *  )

Definition at line 218 of file protocol.c.

References IRCDProto::ircd_version.

void ircd_wallop ( char *  source,
char *  msg,
  ... 
)

Definition at line 249 of file protocol.c.

References CfgSettings, IRCDProto::ircd_wallop, and Conf::servername.

void ircd_xline ( char *  xline,
char *  source,
char *  mask,
char *  reason,
  ... 
)

Definition at line 203 of file protocol.c.

References IRCDProto::ircd_xline.

int protocol_open ( char *  filename)

Variable Documentation

char* ircd_umodes[128]

Definition at line 34 of file user.c.

Referenced by create_usermode_string(), and read_usermode_string().

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines