Commit 8467b355 authored by Dominik Charousset's avatar Dominik Charousset

Improve documentation of IO system messages

parent 697496cd
...@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment