player.c

ldmud-3.3.719/test/t-0000398/player.c · 338 B

From the archive ldmud-3.3.719.tar.gz

Download the archive   « Back to the archive contents

#include "/inc/gc.inc"

void start_client()
{
    net_connect("127.0.0.1", query_mud_port());
}

int logon(int flag)
{
    enable_telnet(0);
    set_prompt("");

    call_out(#'start_gc, 1,
    (:
	if($1)
	    shutdown(1);
	else
	{
	    write("x\n");
	    call_out(#'start_gc, 1, #'shutdown);
	    return;
	}
    :));    
    return 1;
}

Site Stats

Snippets: 1791
Codebases: 571