summaryrefslogtreecommitdiff
path: root/source3/lib/messages.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib/messages.c')
-rw-r--r--source3/lib/messages.c20
1 files changed, 19 insertions, 1 deletions
diff --git a/source3/lib/messages.c b/source3/lib/messages.c
index 7805f3c6d9..16d3a61343 100644
--- a/source3/lib/messages.c
+++ b/source3/lib/messages.c
@@ -832,7 +832,7 @@ void messaging_deregister(struct messaging_context *ctx, uint32_t msg_type,
/*
Send a message to a particular server
*/
-NTSTATUS messaging_send(struct messaging_context *msg,
+NTSTATUS messaging_send(struct messaging_context *msg_ctx,
struct server_id server,
uint32_t msg_type, const DATA_BLOB *data)
{
@@ -840,4 +840,22 @@ NTSTATUS messaging_send(struct messaging_context *msg,
data->length, True, 0);
}
+NTSTATUS messaging_send_buf(struct messaging_context *msg_ctx,
+ struct server_id server, uint32_t msg_type,
+ const uint8 *buf, size_t len)
+{
+ DATA_BLOB blob = data_blob_const(buf, len);
+ return messaging_send(msg_ctx, server, msg_type, &blob);
+}
+
+NTSTATUS messaging_send_buf_with_timeout(struct messaging_context *msg_ctx,
+ struct server_id server,
+ uint32_t msg_type,
+ const uint8 *buf, size_t len,
+ int timeout)
+{
+ return message_send_pid_internal(server, msg_type, buf, len,
+ True, timeout);
+}
+
/** @} **/