diff options
author | chatty | 1993-11-29 15:45:14 +0000 |
---|---|---|
committer | chatty | 1993-11-29 15:45:14 +0000 |
commit | f44633df7f1bea8920bcb5a2b39ee0c334e9da8d (patch) | |
tree | 7576b7daed74e1c4cbcdb8185f6df049a7802564 /comm/MsgStream.h | |
parent | 2084a7c9423408d93ed917ba538bf6519c7c3b77 (diff) | |
download | ivy-league-f44633df7f1bea8920bcb5a2b39ee0c334e9da8d.zip ivy-league-f44633df7f1bea8920bcb5a2b39ee0c334e9da8d.tar.gz ivy-league-f44633df7f1bea8920bcb5a2b39ee0c334e9da8d.tar.bz2 ivy-league-f44633df7f1bea8920bcb5a2b39ee0c334e9da8d.tar.xz |
Removed useless default constructor
Changed return type of Ask and ConvertAnswer
Diffstat (limited to 'comm/MsgStream.h')
-rw-r--r-- | comm/MsgStream.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/comm/MsgStream.h b/comm/MsgStream.h index c2b8e1f..bfa8e78 100644 --- a/comm/MsgStream.h +++ b/comm/MsgStream.h @@ -41,11 +41,11 @@ enum TYPE { MSG = 1, ASK, ANS, SYNC, ASYNC, OK }; void ProcessInput (UchMsgBuffer&, bool); int ReadInput (); + public: - UchMsgStream (); - UchMsgStream (const UchMsgStream&); - UchMsgStream (UchAddress*, UchAddress*); - ~UchMsgStream (); + UchMsgStream (const UchMsgStream&); + UchMsgStream (UchAddress* = 0, UchAddress* = 0); + ~UchMsgStream (); void InputBuffer (int min, int grow, int max); void OutputBuffer (int min, int grow, int max); @@ -57,10 +57,10 @@ inline void FlushSize (int n) { OutSize = n; } inline bool GetSyncMode () { return Sync; } inline void SetSyncMode (bool s) { Sync = s; Flush (); } virtual bool NewMessage (UchMsgBuffer&, bool); -virtual void* ConvertAnswer (UchMsgBuffer&); +virtual UchMessage* ConvertAnswer (UchMsgBuffer&); virtual void Delete (); void Send (UchMessage&, bool = FALSE); - void* Ask (UchMessage&); + UchMessage* Ask (UchMessage&); void Reply (UchMessage&); void Flush (); void Send (UchMsgBuffer&, bool = FALSE); |