OpenVAS Scanner 23.23.1
ipc_pipe.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Greenbone AG
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later
4 */
5
6#ifndef MISC_IPC_PIPE_H
7#define MISC_IPC_PIPE_H
8
10{
11 int fd[2];
12};
13
14int
15ipc_pipe_send (struct ipc_pipe_context *context, const char *msg, int len);
16
17char *
18ipc_pipe_retrieve (struct ipc_pipe_context *context);
19
20int
21ipc_pipe_destroy (struct ipc_pipe_context *context);
22
23int
24ipc_pipe_close (struct ipc_pipe_context *context);
25
26struct ipc_pipe_context *
27ipc_init_pipe (void);
28
29#endif
struct ipc_pipe_context * ipc_init_pipe(void)
initializes a new context. Do not use this method directly, use ipc_init of ipc.h instead.
Definition ipc_pipe.c:132
int ipc_pipe_send(struct ipc_pipe_context *context, const char *msg, int len)
sends given msg via the given context. Do not use this method directly, use ipc_send of ipc....
Definition ipc_pipe.c:32
int ipc_pipe_destroy(struct ipc_pipe_context *context)
destroys given context. Do not use this method directly, use ipc_destroy of ipc.h instead.
Definition ipc_pipe.c:110
int ipc_pipe_close(struct ipc_pipe_context *context)
closes given context. Do not use this method directly, use ipc_close of ipc.h instead.
Definition ipc_pipe.c:85
char * ipc_pipe_retrieve(struct ipc_pipe_context *context)
retrieves message from the given context. Do not use this method directly, use ipc_retrieve of ipc....
Definition ipc_pipe.c:50
uint8_t len
Definition nasl_packet_forgery.c:1
Definition ipc_pipe.h:10
int fd[2]
Definition ipc_pipe.h:11