mirror of
https://github.com/lunarmodules/luasocket.git
synced 2025-07-16 13:59:55 +02:00
Initial revision
This commit is contained in:
18
src/socket.h
Normal file
18
src/socket.h
Normal file
@ -0,0 +1,18 @@
|
||||
#ifndef SOCK_H_
|
||||
#define SOCK_H_
|
||||
|
||||
#include <lua.h>
|
||||
#include "lsfd.h"
|
||||
|
||||
#define SOCK_CLASS "luasocket(sock)"
|
||||
|
||||
#define SOCK_FIELDS FD_FIELDS
|
||||
|
||||
typedef t_fd t_sock;
|
||||
typedef t_sock *p_sock;
|
||||
|
||||
void sock_open(lua_State *L);
|
||||
void sock_construct(lua_State *L, p_sock sock);
|
||||
void sock_inherit(lua_State *L, cchar *lsclass);
|
||||
|
||||
#endif /* SOCK_H_ */
|
Reference in New Issue
Block a user