12 changed files with 60 additions and 12 deletions
Binary file not shown.
Binary file not shown.
@ -0,0 +1,35 @@
|
||||
//
|
||||
// Use this file to import your target's public headers that you would like to expose to Swift.
|
||||
//
|
||||
|
||||
#ifndef Example_OSX_Bridging_Header_h |
||||
#define Example_OSX_Bridging_Header_h |
||||
|
||||
int start_intercept(); |
||||
int start_service(const char * path); |
||||
int join_network(const char * nwid); |
||||
void disable_intercept(); |
||||
void enable_intercept(); |
||||
|
||||
#include <sys/socket.h> |
||||
#include "SDK_Signatures.h" |
||||
|
||||
void zt_join_network(const char *nwid); |
||||
void zt_leave_network(const char *nwid); |
||||
|
||||
// Direct Call ZT API
|
||||
// These functions will provide direct access to ZT-enabled sockets with no hassle
|
||||
int zts_connect(CONNECT_SIG); |
||||
int zt_bind(BIND_SIG); |
||||
int zt_accept(ACCEPT_SIG); |
||||
int zt_listen(LISTEN_SIG); |
||||
int zts_socket(SOCKET_SIG); |
||||
int zt_setsockopt(SETSOCKOPT_SIG); |
||||
int zt_getsockopt(GETSOCKOPT_SIG); |
||||
int zt_close(CLOSE_SIG); |
||||
int zt_getsockname(GETSOCKNAME_SIG); |
||||
|
||||
|
||||
#endif /* Example_OSX_Bridging_Header_h */ |
||||
|
||||
|
||||
Loading…
Reference in new issue