Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
Kea
Commits
ad6c12af
Commit
ad6c12af
authored
May 18, 2012
by
JINMEI Tatuya
Browse files
[1539] added some note about sockaddr conversion
parent
921405b0
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/util/unittests/mock_socketsession.h
View file @
ad6c12af
...
...
@@ -111,6 +111,11 @@ public:
// Read-only accessors to recorded parameters to the previous successful
// call to push(). Return values are undefined if there has been no
// successful call to push().
// Note that we use convertSockAddr() to convert sockaddr_storage to
// sockaddr. It should be safe since we use the storage in its literal
// sense; it was originally filled with the binary image of another
// sockaddr structure, and we are going to return the image opaquely
// as a sockaddr structure without touching the data.
int
getPushedSock
()
const
{
return
(
pushed_sock_
);
}
int
getPushedFamily
()
const
{
return
(
pushed_family_
);
}
int
getPushedType
()
const
{
return
(
pushed_type_
);
}
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment