Documented internal `libprocess` helper function. Review: https://reviews.apache.org/r/46027/
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/e492b542 Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/e492b542 Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/e492b542 Branch: refs/heads/master Commit: e492b54270dac926bb6c26e8ec3293eb5c8258d9 Parents: 8501e10 Author: Neil Conway <neil.con...@gmail.com> Authored: Wed Apr 13 14:34:07 2016 -0700 Committer: Benjamin Mahler <bmah...@apache.org> Committed: Wed Apr 13 14:37:41 2016 -0700 ---------------------------------------------------------------------- 3rdparty/libprocess/src/process.cpp | 6 ++++++ 1 file changed, 6 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/mesos/blob/e492b542/3rdparty/libprocess/src/process.cpp ---------------------------------------------------------------------- diff --git a/3rdparty/libprocess/src/process.cpp b/3rdparty/libprocess/src/process.cpp index 3f2f836..afeddec 100644 --- a/3rdparty/libprocess/src/process.cpp +++ b/3rdparty/libprocess/src/process.cpp @@ -556,6 +556,12 @@ static void transport(Message* message, ProcessBase* sender = NULL) } +// Returns true if `request` contains an inbound libprocess message. +// A libprocess message can either be sent by another instance of +// libprocess (i.e. both of the "User-Agent" and "Libprocess-From" +// headers will be set), or a client that speaks the libprocess +// protocol (i.e. only the "Libprocess-From" header will be set). +// This function returns true for either case. static bool libprocess(Request* request) { return