just commiting work so far

This commit is contained in:
2014-08-15 15:13:09 +01:00
parent cc069c64db
commit 05ba770d13
19 changed files with 564 additions and 379 deletions

29
src/server-socket.h Normal file
View File

@@ -0,0 +1,29 @@
/*
* File: server-socket.h
* Author: sam
*
* Created on 15 August 2014, 13:22
*/
#ifndef SERVER_SOCKET_H
#define SERVER_SOCKET_H
#include "socket.h"
#ifdef __cplusplus
extern "C" {
#endif
int server_socket_create();
void server_socket_listen(int fd, uint16_t port);
void server_socket_release(int fd);
bool server_socket_canaccept(int fd);
skt_info* server_socket_accept(int fd, int flags);
#ifdef __cplusplus
}
#endif
#endif /* SERVER_SOCKET_H */