aboutsummaryrefslogtreecommitdiff
path: root/src/io.h
diff options
context:
space:
mode:
authorDiego Nehab <diego@tecgraf.puc-rio.br>2003-06-09 18:23:40 +0000
committerDiego Nehab <diego@tecgraf.puc-rio.br>2003-06-09 18:23:40 +0000
commit58bdb658aaa1c30a8f3bed46eef880d308fae582 (patch)
tree5bf880c715daff79c1a2062f2f3ae8336858c83f /src/io.h
parentb2724ad2d1cc3768a04270ed3f8014ec65ad133b (diff)
downloadluasocket-58bdb658aaa1c30a8f3bed46eef880d308fae582.tar.gz
luasocket-58bdb658aaa1c30a8f3bed46eef880d308fae582.tar.bz2
luasocket-58bdb658aaa1c30a8f3bed46eef880d308fae582.zip
Select re-implemented in a nicer way.
Few changes in internal class and group registration. Lua modules are compiled and built into library. Dynamic library tested in Linux and Mac OS X.
Diffstat (limited to 'src/io.h')
-rw-r--r--src/io.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/io.h b/src/io.h
index b5b7f1d..30d445b 100644
--- a/src/io.h
+++ b/src/io.h
@@ -1,7 +1,17 @@
1#ifndef IO_H 1#ifndef IO_H
2#define IO_H 2#define IO_H
3 3
4#include "error.h" 4#include <stdio.h>
5
6/* IO error codes */
7enum {
8 IO_DONE, /* operation completed successfully */
9 IO_TIMEOUT, /* operation timed out */
10 IO_CLOSED, /* the connection has been closed */
11 IO_ERROR, /* something wrong... */
12 IO_REFUSED, /* transfer has been refused */
13 IO_LIMITED /* maximum number of bytes reached */
14};
5 15
6/* interface to send function */ 16/* interface to send function */
7typedef int (*p_send) ( 17typedef int (*p_send) (