diff options
author | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-09-09 14:10:51 +0800 |
---|---|---|
committer | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-09-09 14:10:51 +0800 |
commit | fd0bebe7a68f0ff2a4a3a3aa90fc81bc28ee3e66 (patch) | |
tree | fadc3445fead35ab66d0196c8dd27b9688f89855 /mbbsd/chc_net.c | |
parent | e0f54c5ba43c5e4bc15698f5ffb4f222dc1d5e46 (diff) | |
download | pttbbs-fd0bebe7a68f0ff2a4a3a3aa90fc81bc28ee3e66.tar pttbbs-fd0bebe7a68f0ff2a4a3a3aa90fc81bc28ee3e66.tar.gz pttbbs-fd0bebe7a68f0ff2a4a3a3aa90fc81bc28ee3e66.tar.bz2 pttbbs-fd0bebe7a68f0ff2a4a3a3aa90fc81bc28ee3e66.tar.lz pttbbs-fd0bebe7a68f0ff2a4a3a3aa90fc81bc28ee3e66.tar.xz pttbbs-fd0bebe7a68f0ff2a4a3a3aa90fc81bc28ee3e66.tar.zst pttbbs-fd0bebe7a68f0ff2a4a3a3aa90fc81bc28ee3e66.zip |
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
Diffstat (limited to 'mbbsd/chc_net.c')
-rw-r--r-- | mbbsd/chc_net.c | 25 |
1 files changed, 0 insertions, 25 deletions
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)); -} |