* Reverted back to the original version of BNetworkAddress::SetAddress();

in_addr_t is now in network endian again. Thanks, Philippe!
* Made SetToLoopback(), and SetToLocal() a bit more useful (although the latter
  isn't implemented yet).
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40552 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2011-02-18 21:09:21 +00:00
parent 1b53751478
commit ddf57b6cf6
4 changed files with 31 additions and 14 deletions
+5 -3
View File
@@ -1,5 +1,5 @@
/*
* Copyright 2010, Haiku, Inc. All Rights Reserved.
* Copyright 2010-2011, Haiku, Inc. All Rights Reserved.
* Distributed under the terms of the MIT License.
*/
#ifndef _NETWORK_ADDRESS_H
@@ -63,8 +63,10 @@ public:
void SetTo(const BNetworkAddress& other);
status_t SetToBroadcast(int family, uint16 port = 0);
status_t SetToLocal();
status_t SetToLoopback();
status_t SetToLocal(int family = AF_UNSPEC,
uint16 port = 0);
status_t SetToLoopback(int family = AF_UNSPEC,
uint16 port = 0);
status_t SetToMask(int family, uint32 prefixLength);
status_t SetToWildcard(int family, uint16 port = 0);