Implement this server in C:
/* myloggerd.c
* Source file for thread-lab
* Creates a server to log messages sent from variousconnections
* in real time.
*
* Student:
*/
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/socket.h>
#include <sys/un.h>
#include <stdlib.h>
#include <pthread.h>
#include “message-lib.h”
// forward declarations
int usage( char name[] );
// a function to be executed by each thread
void * recv_log_msgs( void * arg );
// globals
int log_fd; // opened by main() but accessible by each thread
void * recv_log_msgs( void * arg ){
// loops to receive messages from a connection;
// when read_msg returns zero, terminate theloop
// and close the connection
return NULL;
}
int usage( char name[] ){
printf( “Usage:n” );
printf(
PayPal Gateway not configured
PayPal Gateway not configured