
/*************************************************************************
**
** o5_Server.c
** Copyright (c) 1995,1996 Daniel Kahlin <tlr@stacken.kth.se>
**
** Commands: SERVER
**
** NOT MACHINE DEPENDANT
**
******/

#include <dos.h>
#include <stdio.h>
#include <stdlib.h>
#include <error.h>
#include <string.h>
#include <ctype.h>

#include "Main_rev.h"

#include "Main.h"
#include "Block.h"
#include "Protocol.h"
#include "Main.h"
#include "Convert.h"

#include "mach.h"

#define SRV_TEMPLATE "DEBUG/S"

struct srv_args {
	ULONG as_debug;
};

struct srv_args srv_argarray;


/*************************************************************************
**
** SERVER
**
******/
void o5_Server(char *myparams)
{

	if (!(mach_rdargs(SRV_TEMPLATE,(LONG *)&srv_argarray,myparams)))
		panic("error in args");
	if (srv_argarray.as_debug)
		debug=DBG_FULL;

	printf("Now in server mode!\n");

/* disable requesters */
	mach_noerror();

/* go server */
	bl_server();


}

