U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » U++ MT-multithreading and servers » Socket::IsOpen BUG/FIX (?)
Socket::IsOpen BUG/FIX (?) [message #24489] Wed, 20 January 2010 07:57 Go to previous message
kohait00 is currently offline  kohait00
Messages: 939
Registered: July 2009
Location: Germany
Experienced Contributor
hi there

in socket.h:73
class Socket

bool IsOpen() const { return !!data; }


is maybe wrong, since the Data class provides an IsOpen(), to which it should map, right?

so maybe like this:
bool IsOpen() const { return (data)?(data->IsOpen():(false); }

or
bool IsOpen() const { return data && data->IsOpen(); }


or do i miss something??
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Socket through Proxy server
Next Topic: MT with speed optimization fails
Goto Forum:
  


Current Time: Wed Sep 16 21:21:26 GMT+2 2026

Total time taken to generate the page: 0.00693 seconds