Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
Actor Framework
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
Actor Framework
Commits
cfc6388f
Commit
cfc6388f
authored
Jul 05, 2018
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove IPv6 comparison, add setter for bits
parent
1be020b4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
10 deletions
+7
-10
libcaf_core/caf/ipv4_address.hpp
libcaf_core/caf/ipv4_address.hpp
+7
-10
No files found.
libcaf_core/caf/ipv4_address.hpp
View file @
cfc6388f
...
@@ -28,8 +28,7 @@
...
@@ -28,8 +28,7 @@
namespace
caf
{
namespace
caf
{
class
ipv4_address
:
public
byte_address
<
ipv4_address
>
,
class
ipv4_address
:
public
byte_address
<
ipv4_address
>
{
detail
::
comparable
<
ipv4_address
,
ipv6_address
>
{
public:
public:
// -- constants --------------------------------------------------------------
// -- constants --------------------------------------------------------------
...
@@ -47,14 +46,6 @@ public:
...
@@ -47,14 +46,6 @@ public:
ipv4_address
(
array_type
bytes
);
ipv4_address
(
array_type
bytes
);
// -- comparison -------------------------------------------------------------
using
super
::
compare
;
/// Returns a negative number if `*this < other`, zero if `*this == other`
/// and a positive number if `*this > other`.
int
compare
(
const
ipv6_address
&
other
)
const
noexcept
;
// -- properties -------------------------------------------------------------
// -- properties -------------------------------------------------------------
/// Returns whether this is a loopback address.
/// Returns whether this is a loopback address.
...
@@ -68,6 +59,12 @@ public:
...
@@ -68,6 +59,12 @@ public:
return
bits_
;
return
bits_
;
}
}
/// Sets all bits of the IP address in a single 32-bit write.
/// @private
inline
void
bits
(
uint32_t
value
)
noexcept
{
bits_
=
value
;
}
/// Returns the bytes of the IP address as array.
/// Returns the bytes of the IP address as array.
inline
array_type
&
bytes
()
noexcept
{
inline
array_type
&
bytes
()
noexcept
{
return
bytes_
;
return
bytes_
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment