MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / DoraXrtHttpStreamOnOpen

Function DoraXrtHttpStreamOnOpen

Source/Http/XrtHttpClient.c:676–684  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

674}
675
676static void DoraXrtHttpStreamOnOpen(ptr owner, xnetstream* stream) {
677 DoraXrtHttpStreamContext* ctx = (DoraXrtHttpStreamContext*)owner;
678 if (!ctx || !stream) {
679 return;
680 }
681 if (xrtNetStreamSend(stream, ctx->requestBytes, ctx->requestLen) != XRT_NET_OK) {
682 DoraXrtHttpStreamCloseWith(ctx, XRT_NET_ERROR);
683 }
684}
685
686static void DoraXrtHttpStreamOnRecv(ptr owner, xnetstream* stream, xnetchain* chain) {
687 DoraXrtHttpStreamContext* ctx = (DoraXrtHttpStreamContext*)owner;

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected