Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
senf
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
wiback
senf
Commits
5d489516
Commit
5d489516
authored
17 years ago
by
dw6
Browse files
Options
Downloads
Patches
Plain Diff
adding constructor from in6_addr
INet6Address(in6_addr in6a)
parent
354cc867
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Socket/Protocols/INet/INet6Address.cci
+6
-0
6 additions, 0 deletions
Socket/Protocols/INet/INet6Address.cci
Socket/Protocols/INet/INet6Address.hh
+3
-0
3 additions, 0 deletions
Socket/Protocols/INet/INet6Address.hh
with
9 additions
and
0 deletions
Socket/Protocols/INet/INet6Address.cci
+
6
−
0
View file @
5d489516
...
@@ -58,6 +58,12 @@ prefix_ senf::INet6Address::INet6Address(boost::uint16_t a0, boost::uint16_t a1,
...
@@ -58,6 +58,12 @@ prefix_ senf::INet6Address::INet6Address(boost::uint16_t a0, boost::uint16_t a1,
(*this)[15] = boost::uint8_t(a7);
(*this)[15] = boost::uint8_t(a7);
}
}
prefix_ senf::INet6Address::INet6Address(in6_addr in6addr){
senf::INet6Address::from_data(&in6addr.s6_addr[0]);
}
prefix_ senf::INet6Address senf::INet6Address::from_inet4address(INet4Address addr4)
prefix_ senf::INet6Address senf::INet6Address::from_inet4address(INet4Address addr4)
{
{
INet6Address addr;
INet6Address addr;
...
...
This diff is collapsed.
Click to expand it.
Socket/Protocols/INet/INet6Address.hh
+
3
−
0
View file @
5d489516
...
@@ -29,6 +29,7 @@
...
@@ -29,6 +29,7 @@
// Custom includes
// Custom includes
#include
<iostream>
#include
<iostream>
#include
<string>
#include
<string>
#include
<netinet/in.h>
#include
<boost/cstdint.hpp>
#include
<boost/cstdint.hpp>
#include
<boost/array.hpp>
#include
<boost/array.hpp>
#include
<boost/operators.hpp>
#include
<boost/operators.hpp>
...
@@ -165,6 +166,8 @@ namespace senf {
...
@@ -165,6 +166,8 @@ namespace senf {
boost
::
uint16_t
a3
=
0u
,
boost
::
uint16_t
a4
=
0u
,
boost
::
uint16_t
a5
=
0u
,
boost
::
uint16_t
a3
=
0u
,
boost
::
uint16_t
a4
=
0u
,
boost
::
uint16_t
a5
=
0u
,
boost
::
uint16_t
a6
=
0u
,
boost
::
uint16_t
a7
=
0u
);
boost
::
uint16_t
a6
=
0u
,
boost
::
uint16_t
a7
=
0u
);
///< Construct an address constant
///< Construct an address constant
INet6Address
(
in6_addr
in6addr
);
///< Construct from std c struct
static
INet6Address
from_string
(
std
::
string
const
&
s
,
Resolve_t
resolve
=
ResolveINet6
);
static
INet6Address
from_string
(
std
::
string
const
&
s
,
Resolve_t
resolve
=
ResolveINet6
);
///< Convert string to address
///< Convert string to address
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment