From 34aa19cafe8d19412123d92b735e8afda5e0a87d Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Fri, 3 Feb 2006 22:30:30 +0000 Subject: r13317: Create a new function messaging_client_init() which can be used when we don't have a server messaging context. We should replace the datagram messages with stream sockets in this case, so we don't have to create a unique socket. Andrew Bartlett (This used to be commit fd974fb64792f8f6c532b01d2a2e012be18eef7e) --- source4/lib/messaging/irpc.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source4/lib/messaging/irpc.h') diff --git a/source4/lib/messaging/irpc.h b/source4/lib/messaging/irpc.h index e83e7dce65..5b4abc556f 100644 --- a/source4/lib/messaging/irpc.h +++ b/source4/lib/messaging/irpc.h @@ -86,6 +86,8 @@ void messaging_register(struct messaging_context *msg, void *private, void (*fn)(struct messaging_context *, void *, uint32_t, uint32_t, DATA_BLOB *)); struct messaging_context *messaging_init(TALLOC_CTX *mem_ctx, uint32_t server_id, struct event_context *ev); +struct messaging_context *messaging_client_init(TALLOC_CTX *mem_ctx, + struct event_context *ev); NTSTATUS messaging_send_ptr(struct messaging_context *msg, uint32_t server, uint32_t msg_type, void *ptr); void messaging_deregister(struct messaging_context *msg, uint32_t msg_type, void *private); -- cgit