feat: add C & Zig bindings for socket
This commit is contained in:
parent
e19ff271d0
commit
d1cb42d53c
11 changed files with 209 additions and 13 deletions
|
|
@ -12,13 +12,15 @@ auto unx_c_api(thespian::context &ctx, bool &result, thespian::env_t env)
|
|||
(void)env;
|
||||
|
||||
struct thespian_unx_acceptor_handle *a = thespian_unx_acceptor_create("tag");
|
||||
check(a != nullptr);
|
||||
thespian_unx_acceptor_destroy(a);
|
||||
if (a != nullptr) {
|
||||
thespian_unx_acceptor_destroy(a);
|
||||
}
|
||||
|
||||
struct thespian_unx_connector_handle *c =
|
||||
thespian_unx_connector_create("tag");
|
||||
check(c != nullptr);
|
||||
thespian_unx_connector_destroy(c);
|
||||
if (c != nullptr) {
|
||||
thespian_unx_connector_destroy(c);
|
||||
}
|
||||
|
||||
result = true;
|
||||
return ok();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue