#include <stdio.h>
#include <stdarg.h>
#include <string.h>
#include <sys/stat.h>
#include <unistd.h>
#include <stdlib.h>
#include <errno.h>
#include <time.h>
#include <pthread.h>
#include <stdio.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <sys/un.h>
#include <fcntl.h>
#define SYSLOG_PORT 514
int main()
{
struct sockaddr_in addr;
long s_addr;
int fd;
int count = 10;
char msg_rendered[300] = "123456789";
int msg_rendered_len = 0;
int write_len = 0;
memset((void *)&addr, 0, sizeof(struct sockaddr_in))