Soft'N'Design Software
/
projects
/
webserver.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
extract server code into separared file
[webserver.git]
/
server.h
1
#ifndef __SERVER_H__
2
#define __SERVER_H__
3
4
#ifdef _WIN32
/* Windows */
5
#include <ws2tcpip.h>
6
typedef
SOCKET socket_t
;
7
#else
/* Posix */
8
typedef
int
socket_t
;
9
#endif
10
11
socket_t
open_listening_socket
(
int
port
);
12
void
close_listening_socket
(
socket_t sock
);
13
14
#endif
/* __SERVER_H__ */
15
16
/* vim: set ts=4 sw=4 et: */