summaryrefslogtreecommitdiff
path: root/src/mongo/transport/service_entry_point.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/transport/service_entry_point.h')
-rw-r--r--src/mongo/transport/service_entry_point.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mongo/transport/service_entry_point.h b/src/mongo/transport/service_entry_point.h
index e0a1ee7a907..f9f82ed3273 100644
--- a/src/mongo/transport/service_entry_point.h
+++ b/src/mongo/transport/service_entry_point.h
@@ -29,6 +29,7 @@
#pragma once
#include "mongo/base/disallow_copying.h"
+#include "mongo/db/dbmessage.h"
#include "mongo/transport/session.h"
namespace mongo {
@@ -51,6 +52,13 @@ public:
*/
virtual void startSession(transport::SessionHandle session) = 0;
+ /**
+ * Processes a request and fills out a DbResponse.
+ */
+ virtual DbResponse handleRequest(OperationContext* opCtx,
+ const Message& request,
+ const HostAndPort& client) = 0;
+
protected:
ServiceEntryPoint() = default;
};