Skip to content

Instantly share code, notes, and snippets.

@jonm
Created November 8, 2015 21:43
Show Gist options
  • Save jonm/bd61c0e01c9a629f063c to your computer and use it in GitHub Desktop.
Save jonm/bd61c0e01c9a629f063c to your computer and use it in GitHub Desktop.
struct descriptor_data
{
int descriptor; /* file descriptor for socket */
char host[50]; /* hostname */
char pwd[12]; /* password */
int pos; /* position in player-file */
int connected; /* mode of 'connectedness' */
int wait; /* wait for how many loops */
char *showstr_head; /* for paging through texts */
char *showstr_point; /* - */
char **str; /* for the modify-str system */
int max_str; /* - */
int prompt_mode; /* control of prompt-printing */
char buf[MAX_STRING_LENGTH]; /* buffer for raw input */
char last_input[MAX_INPUT_LENGTH];/* the last input */
char stat[MAX_STAT]; /* stat priorities */
struct txt_q output; /* q of strings to send */
struct txt_q input; /* q of unprocessed input */
struct char_data *character; /* linked to char */
struct char_data *original; /* original char */
struct snoop_data snoop; /* to snoop people. */
struct descriptor_data *next; /* link to next descriptor */
};
/* This is an excerpt from a DikuMUD-derived codebase. DikuMUD was created by Sebastian Hammer, Michael Seifert</a>,
Hans Henrik Stærfeldt, Tom Madsen, and Katja Nyboe. This code is subject to the DikuMud License, as found at
https://github.com/jonm/SillyMUD/blob/43344e6dc864de7518c2fc0dbf7b7cf14f5924a2/doc/license.doc
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment