/*
/* Author: Noah Mendelsohn
/* Copyright: 1986 MIT Project Athena
+/* For copying and distribution information, please see
+/* the file <mit-copyright.h>.
/*
/* These routines provide a suite of asynchronous operations
/* on connections.
/*
/************************************************************************/
+#include <mit-copyright.h>
#include <stdio.h>
#include "gdb.h"
#include <netinet/in.h>
/*
/*----------------------------------------------------------*/
+/*ARGSUSED*/
int
g_csnobj(op, hcon, arg)
OPERATION op;
* to local byte order, and allocate the space for the receive.
*/
arg->len = (int) ntohl((u_long)arg->len);
+ if (arg->len > 65536)
+ return OP_CANCELLED;
arg->flattened = db_alloc(arg->len);
+ if (arg->flattened == NULL)
+ return OP_CANCELLED;
/*
* Now start receiving the encoded object itself. If it all comes in
* synchronously, then just go on to the c2 routine to decode it and
int g_ilis();
int g_clis();
-int
+void
gdb_start_listening(op, con, otherside, lenp, fdp)
OPERATION op;
CONNECTION con;
/*
/*----------------------------------------------------------*/
+/*ARGSUSED*/
int
g_clis(op, hcon, arg)
OPERATION op;
int g_iacc();
int g_i2acc();
-int
+void
start_accepting_client(listencon, op, conp, otherside, lenp, tuplep)
CONNECTION listencon;
OPERATION op;
/*
/*----------------------------------------------------------*/
+/*ARGSUSED*/
int
g_iacc(op, hcon, arg)
OPERATION op;
/*
/*----------------------------------------------------------*/
+/*ARGSUSED*/
int
g_i2acc(op, hcon, arg)
OPERATION op;