MOS Source Code
Loading...
Searching...
No Matches
server.c File Reference
#include <sys/socket.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <unistd.h>
#include <dirent.h>
#include <stdio.h>
#include <string.h>
#include <pb_encode.h>
#include <pb_decode.h>
#include "fileproto.pb.h"
#include "common.h"
+ Include dependency graph for server.c:

Go to the source code of this file.

Functions

bool ListFilesResponse_callback (pb_istream_t *istream, pb_ostream_t *ostream, const pb_field_iter_t *field)
 
void handle_connection (int connfd)
 
int main (int argc, char **argv)
 

Function Documentation

◆ ListFilesResponse_callback()

bool ListFilesResponse_callback ( pb_istream_t * istream,
pb_ostream_t * ostream,
const pb_field_iter_t * field )

Definition at line 31 of file server.c.

+ Here is the call graph for this function:

◆ handle_connection()

void handle_connection ( int connfd)

Definition at line 68 of file server.c.

Referenced by main().

+ Here is the call graph for this function:

◆ main()

int main ( int argc,
char ** argv )

Definition at line 117 of file server.c.

+ Here is the call graph for this function: