PatchworkOS  10941b4
A non-POSIX operating system.
Loading...
Searching...
No Matches

Local Connections. More...

Collaboration diagram for Local Connections:

Detailed Description

Local Connections.

Local connections represents a "link" between a listener and a client socket. They provide two-way communication channels using ring buffers.

Data Structures

struct  local_conn_t
 Local Connection structure. More...
 

Functions

local_conn_tlocal_conn_new (local_listen_t *listen)
 Allocate and initialize a new local connection.
 
void local_conn_free (local_conn_t *conn)
 Free and deinitialize a local connection.
 

Function Documentation

◆ local_conn_new()

local_conn_t * local_conn_new ( local_listen_t listen)

Allocate and initialize a new local connection.

Parameters
listenPointer to the local listener this connection is associated with.
Returns
On success, a pointer to the new local connection. On failure, NULL and errno is set.

Definition at line 12 of file local_conn.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ local_conn_free()

void local_conn_free ( local_conn_t conn)

Free and deinitialize a local connection.

Parameters
connPointer to the local connection to free.

Definition at line 52 of file local_conn.c.

Here is the call graph for this function:
Here is the caller graph for this function: