miniature cleanups.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20874 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -9,6 +9,8 @@
|
||||
#ifndef ADDRESS_UTILITIES_H
|
||||
#define ADDRESS_UTILITIES_H
|
||||
|
||||
#include <NetUtilities.h>
|
||||
|
||||
#include <net_datalink.h>
|
||||
|
||||
#include <sys/socket.h>
|
||||
@@ -102,6 +104,11 @@ public:
|
||||
return fModule->update_to(fAddress, from);
|
||||
}
|
||||
|
||||
AddressString AsString(bool printPort = false) const
|
||||
{
|
||||
return AddressString(fModule, fAddress, printPort);
|
||||
}
|
||||
|
||||
const sockaddr *operator *() const { return fAddress; }
|
||||
sockaddr *operator *() { return fAddress; }
|
||||
|
||||
@@ -176,6 +183,11 @@ public:
|
||||
return CopyTo((sockaddr *)to);
|
||||
}
|
||||
|
||||
AddressString AsString(bool printPort = false) const
|
||||
{
|
||||
return AddressString(fModule, fAddress, printPort);
|
||||
}
|
||||
|
||||
const sockaddr *operator *() const { return fAddress; }
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user