diff options
Diffstat (limited to 'src/network/tqsocketdevice.cpp')
| -rw-r--r-- | src/network/tqsocketdevice.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/network/tqsocketdevice.cpp b/src/network/tqsocketdevice.cpp index f82d1625f..8ae73f61a 100644 --- a/src/network/tqsocketdevice.cpp +++ b/src/network/tqsocketdevice.cpp @@ -237,7 +237,7 @@ TQSocketDevice::~TQSocketDevice() /*! - Returns TRUE if this is a valid socket; otherwise returns FALSE. + Returns true if this is a valid socket; otherwise returns false. \sa socket() */ @@ -333,13 +333,13 @@ void TQSocketDevice::setSocket( int socket, Type type ) bool TQSocketDevice::open( int mode ) { if ( isOpen() || !isValid() ) - return FALSE; + return false; #if defined(TQSOCKETDEVICE_DEBUG) tqDebug( "TQSocketDevice::open: mode %x", mode ); #endif setMode( mode & IO_ReadWrite ); setState( IO_Open ); - return TRUE; + return true; } @@ -381,19 +381,19 @@ TQIODevice::Offset TQSocketDevice::at() const \reimp The read/write index is meaningless for a socket, therefore this - function does nothing and returns TRUE. + function does nothing and returns true. */ bool TQSocketDevice::at( Offset ) { - return TRUE; + return true; } /*! \reimp - Returns TRUE if no data is currently available at the socket; - otherwise returns FALSE. + Returns true if no data is currently available at the socket; + otherwise returns false. */ bool TQSocketDevice::atEnd() const { @@ -445,8 +445,8 @@ int TQSocketDevice::ungetch( int ) /*! - Returns TRUE if the address of this socket can be used by other - sockets at the same time, and FALSE if this socket claims + Returns true if the address of this socket can be used by other + sockets at the same time, and false if this socket claims exclusive ownership. \sa setAddressReusable() @@ -459,8 +459,8 @@ bool TQSocketDevice::addressReusable() const /*! Sets the address of this socket to be usable by other sockets too - if \a enable is TRUE, and to be used exclusively by this socket if - \a enable is FALSE. + if \a enable is true, and to be used exclusively by this socket if + \a enable is false. When a socket is reusable, other sockets can use the same port number (and IP address), which is generally useful. Of course |
