From fd0bebe7a68f0ff2a4a3a3aa90fc81bc28ee3e66 Mon Sep 17 00:00:00 2001 From: victor Date: Tue, 9 Sep 2003 06:10:51 +0000 Subject: merge from my branch merge chc_*.c to chc.c merge gomo1.c into gomo.c add new feature to chc git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1171 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/chc_net.c | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 mbbsd/chc_net.c (limited to 'mbbsd/chc_net.c') diff --git a/mbbsd/chc_net.c b/mbbsd/chc_net.c deleted file mode 100644 index 5a8c5169..00000000 --- a/mbbsd/chc_net.c +++ /dev/null @@ -1,25 +0,0 @@ -/* $Id: chc_net.c,v 1.4 2002/07/21 09:26:02 in2 Exp $ */ -#include "bbs.h" -typedef struct drc_t { - rc_t from, to; -} drc_t; - -int -chc_recvmove(int s) -{ - drc_t buf; - - if (read(s, &buf, sizeof(buf)) != sizeof(buf)) - return 1; - chc_from = buf.from, chc_to = buf.to; - return 0; -} - -void -chc_sendmove(int s) -{ - drc_t buf; - - buf.from = chc_from, buf.to = chc_to; - write(s, &buf, sizeof(buf)); -} -- cgit v1.2.3