mirror of
https://github.com/lunarmodules/luasocket.git
synced 2025-07-19 07:19:58 +02:00
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.
This commit is contained in:
12
src/io.h
12
src/io.h
@ -1,7 +1,17 @@
|
||||
#ifndef IO_H
|
||||
#define IO_H
|
||||
|
||||
#include "error.h"
|
||||
#include <stdio.h>
|
||||
|
||||
/* IO error codes */
|
||||
enum {
|
||||
IO_DONE, /* operation completed successfully */
|
||||
IO_TIMEOUT, /* operation timed out */
|
||||
IO_CLOSED, /* the connection has been closed */
|
||||
IO_ERROR, /* something wrong... */
|
||||
IO_REFUSED, /* transfer has been refused */
|
||||
IO_LIMITED /* maximum number of bytes reached */
|
||||
};
|
||||
|
||||
/* interface to send function */
|
||||
typedef int (*p_send) (
|
||||
|
Reference in New Issue
Block a user