| 674 | } |
| 675 | |
| 676 | static 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 | |
| 686 | static void DoraXrtHttpStreamOnRecv(ptr owner, xnetstream* stream, xnetchain* chain) { |
| 687 | DoraXrtHttpStreamContext* ctx = (DoraXrtHttpStreamContext*)owner; |
nothing calls this directly
no test coverage detected