Skip to content

Instantly share code, notes, and snippets.

@LouisJenkinsCS
Created March 28, 2015 15:25
Show Gist options
  • Save LouisJenkinsCS/7ef9df0445be68702779 to your computer and use it in GitHub Desktop.
Save LouisJenkinsCS/7ef9df0445be68702779 to your computer and use it in GitHub Desktop.
/*
* 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