Added include guards

This commit is contained in:
2023-02-22 22:40:35 -06:00
parent 2d640466f7
commit 6b10465f61

View File

@@ -1,7 +1,13 @@
#ifndef EASYSOCK_H_
#define EASYSOCK_H_
#include <string.h> #include <string.h>
#include <sys/socket.h> #include <sys/socket.h>
#include <arpa/inet.h> #include <arpa/inet.h>
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h>
#include <errno.h>
/* This function takes: /* This function takes:
a layer 3 - network layer - integer, which must be '4' for IPv4 a layer 3 - network layer - integer, which must be '4' for IPv4
@@ -41,4 +47,8 @@ requested address. It is used for remoet sockets (client sockets). The paramters
as above. as above.
It prints the error returned by 'connect' if something went wrong, and exits with error code '-3'.*/ It prints the error returned by 'connect' if something went wrong, and exits with error code '-3'.*/
int create_remote (int network,char transport,char* address,int port); int create_remote (int network,char transport,char* address,int port);
#endif