"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "test/testnetutil.cpp" between
muscle8.20.zip and muscle8.30.zip

About: MUSCLE (Multi User Server Client Linking Environment) is a messaging server and networking API. The included server program ("muscled") lets its clients message each other, and/or store information in its serverside hierarchical database.

testnetutil.cpp  (muscle8.20):testnetutil.cpp  (muscle8.30)
skipping to change at line 14 skipping to change at line 14
#include "system/SetupSystem.h" #include "system/SetupSystem.h"
#include "util/NetworkUtilityFunctions.h" #include "util/NetworkUtilityFunctions.h"
#include "util/Socket.h" #include "util/Socket.h"
using namespace muscle; using namespace muscle;
class TestHostNameResolver : public IHostNameResolver class TestHostNameResolver : public IHostNameResolver
{ {
public: public:
TestHostNameResolver(int pri) : _pri(pri) {/* empty */} explicit TestHostNameResolver(int pri) : _pri(pri) {/* empty */}
virtual status_t GetIPAddressForHostName(const char * name, bool expandLocalh ost, bool preferIPv6, IPAddress & retIPAddress) virtual status_t GetIPAddressForHostName(const char * name, bool expandLocalh ost, bool preferIPv6, IPAddress & retIPAddress)
{ {
(void) retIPAddress; // avoid compiler warning (void) retIPAddress; // avoid compiler warning
printf("TestHostNameResolver (priority %i): name=[%s] expandLocalhost=%i preferIPv6=%i\n", _pri, name, expandLocalhost, preferIPv6); printf("TestHostNameResolver (priority %i): name=[%s] expandLocalhost=%i preferIPv6=%i\n", _pri, name, expandLocalhost, preferIPv6);
return B_ERROR("Artificially induced error"); return B_ERROR("Artificially induced error");
} }
private: private:
const int _pri; const int _pri;
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)