Added include guards

master
Aadhavan Srinivasan 2 years ago
parent 2d640466f7
commit 6b10465f61

@ -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

Loading…
Cancel
Save