Skip to content

Commit 953a905

Browse files
authored
Add lws_remaining_packet_payload for payload tracking (#8)
1 parent b8debbf commit 953a905

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "Libwebsockets"
22
uuid = "30a1cee6-c274-443c-b274-d8ea34e8f87d"
3-
version = "1.0.2"
3+
version = "1.0.3"
44

55
[deps]
66
libwebsockets_jll = "b6b84edf-6aef-5ff6-9b66-656961a84a09"

src/functions.jl

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,8 @@ export lws_add_http_common_headers,
157157
lwsws_get_config_vhosts,
158158
lws_sul_schedule,
159159
lws_retry_sul_schedule,
160-
lws_retry_sul_schedule_retry_wsi
160+
lws_retry_sul_schedule_retry_wsi,
161+
lws_remaining_packet_payload
161162

162163
function lwsl_context_get_cx(cx)
163164
ccall((:lwsl_context_get_cx, libwebsockets), Ptr{LwsLogCx}, (Ptr{LwsContext},), cx)
@@ -789,4 +790,8 @@ end
789790

790791
function lws_retry_sul_schedule_retry_wsi(wsi, sul, cb, ctry)
791792
ccall((:lws_retry_sul_schedule_retry_wsi, libwebsockets), Cint, (Ptr{Lws}, Ptr{LwsSortedUsecList}, Ptr{Cvoid}, Ptr{Cushort}), wsi, sul, cb, ctry)
793+
end
794+
795+
function lws_remaining_packet_payload(wsi)
796+
return ccall((:lws_remaining_packet_payload, libwebsockets), Csize_t, (Ptr{Lws},), wsi)
792797
end

0 commit comments

Comments
 (0)