mirror of
https://github.com/lunarmodules/luasocket.git
synced 2025-07-19 07:19:58 +02:00
Trying to get connect-with-timeout to work. Darwin works...
This commit is contained in:
6
src/io.h
6
src/io.h
@ -20,12 +20,11 @@
|
||||
/* IO error codes */
|
||||
enum {
|
||||
IO_DONE, /* operation completed successfully */
|
||||
IO_RETRY, /* please try again */
|
||||
IO_TIMEOUT, /* operation timed out */
|
||||
IO_CLOSED, /* the connection has been closed */
|
||||
IO_ERROR, /* something wrong... */
|
||||
IO_REFUSED, /* transfer has been refused */
|
||||
IO_RETRY, /* please try again */
|
||||
IO_LIMITED /* maximum number of bytes reached */
|
||||
IO_ERROR /* something else wrong... */
|
||||
};
|
||||
|
||||
/* interface to send function */
|
||||
@ -54,6 +53,7 @@ typedef struct t_io_ {
|
||||
} t_io;
|
||||
typedef t_io *p_io;
|
||||
|
||||
const char *io_strerror(int code);
|
||||
void io_pusherror(lua_State *L, int code);
|
||||
void io_init(p_io io, p_send send, p_recv recv, void *ctx);
|
||||
|
||||
|
Reference in New Issue
Block a user