diff options
Diffstat (limited to 'src/wsocket.c')
-rw-r--r-- | src/wsocket.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/wsocket.c b/src/wsocket.c index 023f470..08c1046 100644 --- a/src/wsocket.c +++ b/src/wsocket.c | |||
@@ -38,6 +38,15 @@ int sock_open(void) | |||
38 | } | 38 | } |
39 | 39 | ||
40 | /*-------------------------------------------------------------------------*\ | 40 | /*-------------------------------------------------------------------------*\ |
41 | * Close module | ||
42 | \*-------------------------------------------------------------------------*/ | ||
43 | int sock_close(void) | ||
44 | { | ||
45 | WSACleanup(); | ||
46 | return 1; | ||
47 | } | ||
48 | |||
49 | /*-------------------------------------------------------------------------*\ | ||
41 | * Select with int timeout in ms | 50 | * Select with int timeout in ms |
42 | \*-------------------------------------------------------------------------*/ | 51 | \*-------------------------------------------------------------------------*/ |
43 | int sock_select(int n, fd_set *rfds, fd_set *wfds, fd_set *efds, int timeout) | 52 | int sock_select(int n, fd_set *rfds, fd_set *wfds, fd_set *efds, int timeout) |