diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 1997-02-06 06:27:00 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 1997-02-06 06:27:00 +0000 |
commit | 912cc4acf7410cc4d2e353dd12ed465058728bc2 (patch) | |
tree | 8cf6445938d7afd4ae2895ee28449d7e36d44ae2 /ace/IOStream.cpp | |
parent | 3152ea6d7cc3d068072ef24b17b2789f5ef7d41f (diff) | |
download | ATCD-912cc4acf7410cc4d2e353dd12ed465058728bc2.tar.gz |
fpp
Diffstat (limited to 'ace/IOStream.cpp')
-rw-r--r-- | ace/IOStream.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/ace/IOStream.cpp b/ace/IOStream.cpp index 01b3a8d3e8d..947bbc76bcd 100644 --- a/ace/IOStream.cpp +++ b/ace/IOStream.cpp @@ -80,7 +80,7 @@ // a myiostream&, the second >> will be invoked as desired. */ template <class STREAM> int -ACE_Streambuf<STREAM>::underflow( void ) +ACE_Streambuf<STREAM>::underflow (void) { // If input mode is not set, any attempt to read from the stream is // a failure. @@ -344,8 +344,8 @@ ACE_Streambuf<STREAM>::flushbuf (void) return 0; } -template <class STREAM> -int ACE_Streambuf<STREAM>::get_one_byte (void) +template <class STREAM> int +ACE_Streambuf<STREAM>::get_one_byte (void) { char * p = base (); ssize_t i = peer_->recv_n (p, 1); @@ -405,7 +405,9 @@ ACE_Streambuf<STREAM>::fillbuf (void) template <class STREAM> ACE_Streambuf<STREAM>::ACE_Streambuf (STREAM *peer, int io_mode) : peer_ (peer), - mode_ (io_mode) + mode_ (io_mode), + get_mode_ (1), + put_mode_ (2) { // A streambuf allows for unbuffered IO where every character is // read as requested and written as provided. To me, this seems |