Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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: Thu Mar 28 22:22:54 CET 2024

Total time taken to generate the page: 0.01400 seconds