TinyMUSH 3.3
TinyMUSH Server
|
Routines used by the networking code that do not depend on the implementation. More...
#include "config.h"
#include "constants.h"
#include "typedefs.h"
#include "macros.h"
#include "externs.h"
#include "prototypes.h"
#include <stdbool.h>
#include <ctype.h>
#include <string.h>
#include <arpa/inet.h>
Functions | |
struct timeval | timeval_sub (struct timeval now, struct timeval then) |
int | msec_diff (struct timeval now, struct timeval then) |
struct timeval | msec_add (struct timeval t, int x) |
struct timeval | update_quotas (struct timeval last, struct timeval current) |
void | raw_notify_html (dbref player, const char *format,...) |
void | raw_notify (dbref player, const char *format,...) |
void | raw_notify_newline (dbref player) |
void | raw_broadcast (int inflags, char *template,...) |
void | clearstrings (DESC *d) |
void | queue_write (DESC *d, const char *b, int n) |
void | queue_string (DESC *d, const char *format,...) |
void | queue_rawstring (DESC *d, const char *format,...) |
void | freeqs (DESC *d) |
void | desc_addhash (DESC *d) |
void | desc_delhash (DESC *d) |
void | welcome_user (DESC *d) |
void | save_command (DESC *d, CBLK *command) |
void | set_userstring (char **userstring, const char *command) |
void | parse_connect (const char *msg, char *command, char *user, char *pass) |
char * | time_format_1 (time_t dt) |
char * | time_format_2 (time_t dt) |
void | announce_connattr (DESC *d, dbref player, dbref loc, const char *reason, int num, int attr) |
void | announce_connect (dbref player, DESC *d, const char *reason) |
void | announce_disconnect (dbref player, DESC *d, const char *reason) |
int | boot_off (dbref player, char *message) |
int | boot_by_port (int port, int no_god, char *message) |
void | desc_reload (dbref player) |
int | fetch_idle (dbref target, int port_num) |
int | fetch_connect (dbref target, int port_num) |
void | check_idle (void) |
char * | trimmed_name (dbref player) |
char * | trimmed_site (char *name) |
void | dump_users (DESC *e, char *match, int key) |
void | dump_info (DESC *call_by) |
void | do_colormap (dbref player, dbref cause __attribute__((unused)), int key __attribute__((unused)), char *fstr, char *tstr) |
char * | sane_doing (char *arg, char *name __attribute__((unused))) |
void | do_doing (dbref player, dbref cause __attribute__((unused)), int key, char *arg) |
void | init_logout_cmdtab (void) |
void | failconn (const char *logcode, const char *logtype, const char *logreason, DESC *d, int disconnect_reason, dbref player, int filecache, char *motd_msg, char *command, char *user, char *password) |
int | check_connect (DESC *d, char *msg) |
void | logged_out_internal (DESC *d, int key, char *arg) |
void | do_command (DESC *d, char *command, int first __attribute__((unused))) |
void | logged_out (dbref player, dbref cause __attribute__((unused)), int key, char *arg) |
void | process_commands (void) |
int | site_check (struct in_addr host, SITE *site_list) |
const char * | stat_string (int strtype, int flag) |
unsigned int | mask_to_prefix (unsigned int mask_num) |
void | list_sites (dbref player, SITE *site_list, const char *header_txt, int stat_type, bool header, bool footer) |
void | list_siteinfo (dbref player) |
void | make_ulist (dbref player, char *buff, char **bufc) |
void | make_portlist (dbref player __attribute__((unused)), dbref target, char *buff, char **bufc) |
void | make_sessioninfo (dbref player, dbref target, int port_num, char *buff, char **bufc) |
char * | get_doing (dbref target, int port_num) |
dbref | get_programmer (dbref target) |
dbref | find_connected_name (dbref player, char *name) |
dbref | find_connected_ambiguous (dbref player, char *name) |
Routines used by the networking code that do not depend on the implementation.