diff options
author | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-12-12 22:15:08 +0000 |
---|---|---|
committer | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-12-12 22:15:08 +0000 |
commit | 831e00fed183105ca971139418d385ade9ca2197 (patch) | |
tree | 4ad034f736a8c5a380d05aae31549a90088afa51 /ace/IOStream_T.h | |
parent | 354fc6d2078977e8b97bdd501ef78762093cbdc9 (diff) | |
download | ATCD-831e00fed183105ca971139418d385ade9ca2197.tar.gz |
(ipfx,ipfx1): don't call setstate () on WIN32
Diffstat (limited to 'ace/IOStream_T.h')
-rw-r--r-- | ace/IOStream_T.h | 48 |
1 files changed, 26 insertions, 22 deletions
diff --git a/ace/IOStream_T.h b/ace/IOStream_T.h index d41c20872fc..a2de38d64de 100644 --- a/ace/IOStream_T.h +++ b/ace/IOStream_T.h @@ -36,8 +36,8 @@ class ACE_Streambuf_T : public ACE_Streambuf { public: ACE_Streambuf_T (STREAM *peer, - u_int streambuf_size = ACE_STREAMBUF_SIZE, - int io_mode = ios::in | ios::out); + u_int streambuf_size = ACE_STREAMBUF_SIZE, + int io_mode = ios::in | ios::out); // We will be given a STREAM by the iostream object which creates // us. See the ACE_IOStream template for how that works. Like // other streambuf objects, we can be input-only, output-only or @@ -46,18 +46,18 @@ public: virtual ssize_t send (char *buf, ssize_t len); virtual ssize_t recv (char *buf, - ssize_t len, - ACE_Time_Value *tv = NULL); + ssize_t len, + ACE_Time_Value *tv = NULL); virtual ssize_t recv (char *buf, - ssize_t len, - int flags, - ACE_Time_Value * tv = NULL); + ssize_t len, + int flags, + ACE_Time_Value * tv = NULL); - virtual ssize_t recv_n (char *buf, - ssize_t len, - int flags = 0, - ACE_Time_Value *tv = NULL); + virtual ssize_t recv_n (char *buf, + ssize_t len, + int flags = 0, + ACE_Time_Value *tv = NULL); protected: virtual ACE_HANDLE get_handle (void); @@ -103,7 +103,7 @@ class ACE_IOStream : public iostream, public STREAM public: // = Initialization and termination methods. ACE_IOStream (STREAM &stream, - u_int streambuf_size = ACE_STREAMBUF_SIZE); + u_int streambuf_size = ACE_STREAMBUF_SIZE); ACE_IOStream (u_int streambuf_size = ACE_STREAMBUF_SIZE); // The default constructor. This will initiailze your STREAM and @@ -153,7 +153,9 @@ public: if (good()) return (1); } +#if !defined (ACE_WIN32) /* MS VC++ 5.0 doesn't declare setstate */ setstate(failbit); +#endif /* !ACE_WIN32 */ return (0); } virtual int ipfx0(void) { return ipfx (0); } // Optimized ipfx(0) @@ -166,7 +168,9 @@ public: if (good()) return (1); } +#if !defined (ACE_WIN32) /* MS VC++ 5.0 doesn't declare setstate */ setstate(failbit); +#endif /* !ACE_WIN32 */ return (0); } virtual void isfx (void) { return; } @@ -231,19 +235,19 @@ class ACE_SOCK_Dgram_SC : public STREAM public: ACE_SOCK_Dgram_SC (void); ACE_SOCK_Dgram_SC (STREAM &source, - ACE_INET_Addr &dest); + ACE_INET_Addr &dest); ssize_t send_n (char *buf, ssize_t len); ssize_t recv (char *buf, - ssize_t len, - ACE_Time_Value *tv = NULL); - ssize_t recv (char *buf, - ssize_t len, - int flags, - ACE_Time_Value *tv = NULL); + ssize_t len, + ACE_Time_Value *tv = NULL); + ssize_t recv (char *buf, + ssize_t len, + int flags, + ACE_Time_Value *tv = NULL); ssize_t recv_n (char *buf, - ssize_t len, - int flags = 0, - ACE_Time_Value *tv = NULL); + ssize_t len, + int flags = 0, + ACE_Time_Value *tv = NULL); int get_remote_addr (ACE_INET_Addr &addr) const; protected: |