![]() |
MOS Source Code
|
#include "mos/ipc/ipc_io.hpp"
#include "mos/io/io.hpp"
#include "mos/ipc/ipc.hpp"
#include "mos/misc/panic.hpp"
#include <mos/allocator.hpp>
#include <mos_stdlib.hpp>
Go to the source code of this file.
Classes | |
struct | ipc_server_io_t |
Functions | |
static void | ipc_control_io_close (io_t *io) |
static size_t | ipc_client_io_write (io_t *io, const void *buf, size_t size) |
static size_t | ipc_client_io_read (io_t *io, void *buf, size_t size) |
static void | ipc_client_io_close (io_t *io) |
static size_t | ipc_server_io_write (io_t *io, const void *buf, size_t size) |
static size_t | ipc_server_io_read (io_t *io, void *buf, size_t size) |
static void | ipc_server_io_close (io_t *io) |
PtrResult< ipc_conn_io_t > | ipc_conn_io_create (IPCDescriptor *ipc, bool is_server_side) |
Create a new IPC connection io descriptor. | |
PtrResult< io_t > | ipc_create (const char *name, size_t max_pending_connections) |
Create a new IPC server. | |
PtrResult< io_t > | ipc_accept (io_t *server) |
Accept a new connection on an IPC server. | |
PtrResult< io_t > | ipc_connect (const char *name, size_t buffer_size) |
Connect to an IPC servers. | |
Variables | |
static const io_op_t | ipc_control_io_op |
static const io_op_t | ipc_client_io_op |
static const io_op_t | ipc_server_io_op |
PtrResult< ipc_conn_io_t > ipc_conn_io_create | ( | IPCDescriptor * | ipc, |
bool | is_server_side ) |
Create a new IPC connection io descriptor.
ipc | The IPC object to create the connection for |
is_server_side | Whether this is the server side of the connection |
Definition at line 90 of file ipc_io.cpp.
Referenced by ipc_accept(), ipc_connect(), and vfs_ipc_file_read().
Create a new IPC server.
name | The name of the server |
max_pending_connections | The maximum number of pending connections to allow |
Definition at line 101 of file ipc_io.cpp.
Accept a new connection on an IPC server.
server | The server to accept a connection on |
Definition at line 119 of file ipc_io.cpp.
Referenced by ipc_accept().
Connect to an IPC servers.
name | The name of the server to connect to |
buffer_size | The size of a shared-memory buffer to use for the connection |
Definition at line 136 of file ipc_io.cpp.
|
static |
Definition at line 30 of file ipc_io.cpp.
Referenced by ipc_create().
|
static |
Definition at line 78 of file ipc_io.cpp.
Referenced by ipc_conn_io_create().
|
static |
Definition at line 84 of file ipc_io.cpp.
Referenced by ipc_conn_io_create().