unix.h 599 B

1234567891011121314151617181920212223242526
  1. #ifndef UNIX_H
  2. #define UNIX_H
  3. /*=========================================================================*\
  4. * Unix domain object
  5. * LuaSocket toolkit
  6. *
  7. * This module is just an example of how to extend LuaSocket with a new
  8. * domain.
  9. \*=========================================================================*/
  10. #include "luasocket.h"
  11. #include "buffer.h"
  12. #include "timeout.h"
  13. #include "socket.h"
  14. typedef struct t_unix_ {
  15. t_socket sock;
  16. t_io io;
  17. t_buffer buf;
  18. t_timeout tm;
  19. } t_unix;
  20. typedef t_unix *p_unix;
  21. LUASOCKET_API int luaopen_socket_unix(lua_State *L);
  22. #endif /* UNIX_H */