From cbaa24d062e1ecebc90fd8b671a1c68daa70664b Mon Sep 17 00:00:00 2001 From: scw Date: Fri, 2 Sep 2005 13:15:30 +0000 Subject: * refine chess framework IO routines * don't write data to user socket when there is no opposite git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3124 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- include/chess.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'include/chess.h') diff --git a/include/chess.h b/include/chess.h index d9284110..8384e225 100644 --- a/include/chess.h +++ b/include/chess.h @@ -164,10 +164,9 @@ typedef enum { int ChessTimeCountDown(ChessInfo* info, int who, int length); void ChessStepMade(ChessInfo* info, int who); -ChessStepType ChessStepReceive(ChessInfo* info, void* step); -int ChessStepSendOpposite(ChessInfo* info, const void* step); -void ChessStepBroadcast(ChessInfo* info, const void* step); +ChessStepType ChessStepReceive(ChessInfo* info, void* step); /* should this be public? */ int ChessStepSend(ChessInfo* info, const void* step); +int ChessMessageSend(ChessInfo* info, ChessStepType type); void ChessHistoryAppend(ChessInfo* info, void* step); const void* ChessHistoryRetrieve(ChessInfo* info, int n); -- cgit v1.2.3