PatchworkOS  621ae6b
A non-POSIX operating system.
Loading...
Searching...
No Matches
Local Protocol

Local Protocol. More...

Collaboration diagram for Local Protocol:

Detailed Description

Local Protocol.

Modules

 Local Connections
 Local Connections.
 
 Local Listeners
 Local Listeners.
 

Data Structures

struct  local_packet_header_t
 Local packet header structure. struct local_packet_header_t. More...
 
struct  local_socket_t
 Local socket data structure. struct local_socket_t. More...
 

Macros

#define LOCAL_BUFFER_SIZE   (4 * PAGE_SIZE)
 The size of local sockets buffer.
 
#define LOCAL_MAX_PACKET_SIZE   (LOCAL_BUFFER_SIZE - sizeof(local_packet_header_t))
 The maximum size of a packet allowed to be sent/received via local sockets.
 
#define LOCAL_MAX_BACKLOG   128
 The maximum backlog of connections for a local listener.
 
#define LOCAL_PACKET_MAGIC   0xC0D74B56
 Magic number for local socket packets, used for validation.
 

Macro Definition Documentation

◆ LOCAL_BUFFER_SIZE

#define LOCAL_BUFFER_SIZE   (4 * PAGE_SIZE)

The size of local sockets buffer.

Definition at line 23 of file local.h.

◆ LOCAL_MAX_PACKET_SIZE

#define LOCAL_MAX_PACKET_SIZE   (LOCAL_BUFFER_SIZE - sizeof(local_packet_header_t))

The maximum size of a packet allowed to be sent/received via local sockets.

Definition at line 28 of file local.h.

◆ LOCAL_MAX_BACKLOG

#define LOCAL_MAX_BACKLOG   128

The maximum backlog of connections for a local listener.

Definition at line 33 of file local.h.

◆ LOCAL_PACKET_MAGIC

#define LOCAL_PACKET_MAGIC   0xC0D74B56

Magic number for local socket packets, used for validation.

Definition at line 38 of file local.h.