1 #ifndef __LUAIXP_INSTANCE_H__
2 #define __LUAIXP_INSTANCE_H__
8 #define L_IXP_MT "ixp.ixp_mt"
9 #define L_IXP_IDIR_MT "ixp.idir_mt"
10 #define L_IXP_IREAD_MT "ixp.iread_mt"
12 #define IXP_READ_MAX_BUFFER_SIZE 65536 // max returned by l_ixp_read
14 /* the C representation of a ixp instance object */
17 struct IxpClient
*client
;
20 extern struct ixp
*lixp_checkixp (lua_State
*L
, int narg
);
21 extern int l_ixp_tostring (lua_State
*L
);
23 /* some additional metatables */
24 extern void lixp_init_iread_mt (lua_State
*L
);
25 extern void lixp_init_idir_mt (lua_State
*L
);
28 extern int l_ixp_write (lua_State
*L
);
29 extern int l_ixp_read (lua_State
*L
);
30 extern int l_ixp_create (lua_State
*L
);
31 extern int l_ixp_remove (lua_State
*L
);
32 extern int l_ixp_iread (lua_State
*L
);
33 extern int l_ixp_stat (lua_State
*L
);
34 extern int l_ixp_idir (lua_State
*L
);
36 #endif // __LUAIXP_INSTANCE_H__