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
8467b355
Commit
8467b355
authored
Nov 18, 2014
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve documentation of IO system messages
parent
697496cd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
+24
-0
libcaf_io/caf/io/system_messages.hpp
libcaf_io/caf/io/system_messages.hpp
+24
-0
No files found.
libcaf_io/caf/io/system_messages.hpp
View file @
8467b355
...
@@ -41,11 +41,17 @@ struct new_connection_msg {
...
@@ -41,11 +41,17 @@ struct new_connection_msg {
connection_handle
handle
;
connection_handle
handle
;
};
};
/**
* @relates new_connection_msg
*/
inline
bool
operator
==
(
const
new_connection_msg
&
lhs
,
inline
bool
operator
==
(
const
new_connection_msg
&
lhs
,
const
new_connection_msg
&
rhs
)
{
const
new_connection_msg
&
rhs
)
{
return
lhs
.
source
==
rhs
.
source
&&
lhs
.
handle
==
rhs
.
handle
;
return
lhs
.
source
==
rhs
.
source
&&
lhs
.
handle
==
rhs
.
handle
;
}
}
/**
* @relates new_connection_msg
*/
inline
bool
operator
!=
(
const
new_connection_msg
&
lhs
,
inline
bool
operator
!=
(
const
new_connection_msg
&
lhs
,
const
new_connection_msg
&
rhs
)
{
const
new_connection_msg
&
rhs
)
{
return
!
(
lhs
==
rhs
);
return
!
(
lhs
==
rhs
);
...
@@ -65,10 +71,16 @@ struct new_data_msg {
...
@@ -65,10 +71,16 @@ struct new_data_msg {
std
::
vector
<
char
>
buf
;
std
::
vector
<
char
>
buf
;
};
};
/**
* @relates new_data_msg
*/
inline
bool
operator
==
(
const
new_data_msg
&
lhs
,
const
new_data_msg
&
rhs
)
{
inline
bool
operator
==
(
const
new_data_msg
&
lhs
,
const
new_data_msg
&
rhs
)
{
return
lhs
.
handle
==
rhs
.
handle
&&
lhs
.
buf
==
rhs
.
buf
;
return
lhs
.
handle
==
rhs
.
handle
&&
lhs
.
buf
==
rhs
.
buf
;
}
}
/**
* @relates new_data_msg
*/
inline
bool
operator
!=
(
const
new_data_msg
&
lhs
,
const
new_data_msg
&
rhs
)
{
inline
bool
operator
!=
(
const
new_data_msg
&
lhs
,
const
new_data_msg
&
rhs
)
{
return
!
(
lhs
==
rhs
);
return
!
(
lhs
==
rhs
);
}
}
...
@@ -83,11 +95,17 @@ struct connection_closed_msg {
...
@@ -83,11 +95,17 @@ struct connection_closed_msg {
connection_handle
handle
;
connection_handle
handle
;
};
};
/**
* @relates connection_closed_msg
*/
inline
bool
operator
==
(
const
connection_closed_msg
&
lhs
,
inline
bool
operator
==
(
const
connection_closed_msg
&
lhs
,
const
connection_closed_msg
&
rhs
)
{
const
connection_closed_msg
&
rhs
)
{
return
lhs
.
handle
==
rhs
.
handle
;
return
lhs
.
handle
==
rhs
.
handle
;
}
}
/**
* @relates connection_closed_msg
*/
inline
bool
operator
!=
(
const
connection_closed_msg
&
lhs
,
inline
bool
operator
!=
(
const
connection_closed_msg
&
lhs
,
const
connection_closed_msg
&
rhs
)
{
const
connection_closed_msg
&
rhs
)
{
return
!
(
lhs
==
rhs
);
return
!
(
lhs
==
rhs
);
...
@@ -103,11 +121,17 @@ struct acceptor_closed_msg {
...
@@ -103,11 +121,17 @@ struct acceptor_closed_msg {
accept_handle
handle
;
accept_handle
handle
;
};
};
/**
* @relates acceptor_closed_msg
*/
inline
bool
operator
==
(
const
acceptor_closed_msg
&
lhs
,
inline
bool
operator
==
(
const
acceptor_closed_msg
&
lhs
,
const
acceptor_closed_msg
&
rhs
)
{
const
acceptor_closed_msg
&
rhs
)
{
return
lhs
.
handle
==
rhs
.
handle
;
return
lhs
.
handle
==
rhs
.
handle
;
}
}
/**
* @relates acceptor_closed_msg
*/
inline
bool
operator
!=
(
const
acceptor_closed_msg
&
lhs
,
inline
bool
operator
!=
(
const
acceptor_closed_msg
&
lhs
,
const
acceptor_closed_msg
&
rhs
)
{
const
acceptor_closed_msg
&
rhs
)
{
return
!
(
lhs
==
rhs
);
return
!
(
lhs
==
rhs
);
...
...
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