diff options
| author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-05-30 21:36:22 +0000 |
|---|---|---|
| committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-05-30 21:36:22 +0000 |
| commit | 5ca1049ab47f3f9ff9157f71af9072f04a637500 (patch) | |
| tree | 24fcb14f2890900a4a709312ab25bfc2c14a3939 /src/wsocket.c | |
| parent | c23240726e3044e3eaa32a82a999b754c08bc183 (diff) | |
| download | luasocket-5ca1049ab47f3f9ff9157f71af9072f04a637500.tar.gz luasocket-5ca1049ab47f3f9ff9157f71af9072f04a637500.tar.bz2 luasocket-5ca1049ab47f3f9ff9157f71af9072f04a637500.zip | |
Fine tuning the "require" business.
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) |
