luat_network_posix.h 433 B

1234567891011121314151617181920
  1. #ifndef LUAT_NETWORK_POSIX_H
  2. #define LUAT_NETWORK_POSIX_H
  3. #include "luat_base.h"
  4. #include "luat_network_adapter.h"
  5. typedef struct posix_socket
  6. {
  7. int socket_id;
  8. uint64_t tag;
  9. uint16_t local_port;
  10. luat_ip_addr_t remote_ip;
  11. uint16_t remote_port;
  12. void *user_data;
  13. }posix_socket_t;
  14. int network_posix_client_thread_start(posix_socket_t* ps);
  15. void posix_network_client_thread_entry(posix_socket_t* args);
  16. #endif