You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by bm...@apache.org on 2016/04/13 23:38:33 UTC

[2/2] mesos git commit: Documented internal `libprocess` helper function.

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 <ne...@gmail.com>
Authored: Wed Apr 13 14:34:07 2016 -0700
Committer: Benjamin Mahler <bm...@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