Created
March 28, 2015 15:25
-
-
Save LouisJenkinsCS/7ef9df0445be68702779 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* File: server.h | |
* Author: theif519 | |
* | |
* Created on March 27, 2015, 1:27 PM | |
*/ | |
#ifndef SERVER_H | |
#define SERVER_H | |
int create_socket(const char *filename); | |
int start_listen(int socket, int queue); | |
int accept_connection(int socket); | |
int init_server(const char *filename, int queue); | |
int close_server(int socket); | |
void read_message(int socket, int bufferSize); | |
void clean_up_server(int signal); | |
#ifdef __cplusplus | |
extern "C" { | |
#endif | |
#ifdef __cplusplus | |
} | |
#endif | |
#endif /* SERVER_H */ | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment