diff --git a/headers/os/net/NetEndpoint.h b/headers/os/net/NetEndpoint.h index ed012315b9..d12da0404a 100644 --- a/headers/os/net/NetEndpoint.h +++ b/headers/os/net/NetEndpoint.h @@ -62,7 +62,7 @@ public: /* * It is important to call InitCheck() after creating an instance of this class. */ - status_t InitCheck() const; + status_t InitCheck(); /* @@ -105,8 +105,8 @@ public: * BNetEndpoint. RemoteAddr() returns a BNetAddress corresponding to the address of * the remote peer we are connected to, if using a connected stream protocol. */ - const BNetAddress & LocalAddr() const; - const BNetAddress & RemoteAddr() const; + const BNetAddress & LocalAddr(); + const BNetAddress & RemoteAddr(); /* * BNetEndpoint::Socket() returns the actual socket used for data communications. diff --git a/src/kits/network/libnetapi/NetEndpoint.cpp b/src/kits/network/libnetapi/NetEndpoint.cpp index 6370b26299..072aabd5bf 100644 --- a/src/kits/network/libnetapi/NetEndpoint.cpp +++ b/src/kits/network/libnetapi/NetEndpoint.cpp @@ -157,7 +157,7 @@ BArchivable *BNetEndpoint::Instantiate(BMessage *archive) // #pragma mark - -status_t BNetEndpoint::InitCheck() const +status_t BNetEndpoint::InitCheck() { return m_init; } @@ -169,13 +169,13 @@ int BNetEndpoint::Socket() const } -const BNetAddress & BNetEndpoint::LocalAddr() const +const BNetAddress & BNetEndpoint::LocalAddr() { return m_addr; } -const BNetAddress & BNetEndpoint::RemoteAddr() const +const BNetAddress & BNetEndpoint::RemoteAddr() { return m_peer; }