MOS Source Code
Loading...
Searching...
No Matches
common.c File Reference
#include <sys/socket.h>
#include <sys/types.h>
#include <pb_encode.h>
#include <pb_decode.h>
#include "common.h"
+ Include dependency graph for common.c:

Go to the source code of this file.

Functions

static bool write_callback (pb_ostream_t *stream, const uint8_t *buf, size_t count)
 
static bool read_callback (pb_istream_t *stream, uint8_t *buf, size_t count)
 
pb_ostream_t pb_ostream_from_socket (int fd)
 
pb_istream_t pb_istream_from_socket (int fd)
 

Function Documentation

◆ write_callback()

static bool write_callback ( pb_ostream_t * stream,
const uint8_t * buf,
size_t count )
static

Definition at line 11 of file common.c.

Referenced by pb_ostream_from_socket().

◆ read_callback()

static bool read_callback ( pb_istream_t * stream,
uint8_t * buf,
size_t count )
static

Definition at line 17 of file common.c.

Referenced by pb_istream_from_socket().

◆ pb_ostream_from_socket()

pb_ostream_t pb_ostream_from_socket ( int fd)

Definition at line 33 of file common.c.

Referenced by handle_connection(), and listdir().

+ Here is the call graph for this function:

◆ pb_istream_from_socket()

pb_istream_t pb_istream_from_socket ( int fd)

Definition at line 39 of file common.c.

Referenced by handle_connection(), and listdir().

+ Here is the call graph for this function: