Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
30 lines (25 loc) · 680 Bytes

File metadata and controls

30 lines (25 loc) · 680 Bytes
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
#include "jd_sdk.h"
static jd_transport_ctx_t *transport_ctx;
static const jd_transport_t *transport;
static bool packet_ready;
void tx_init(const jd_transport_t *transport_, jd_transport_ctx_t *ctx) {
transport_ctx = ctx;
transport = transport_;
jd_tx_init();
}
void jd_packet_ready(void) {
packet_ready = 1;
}
void tx_process(void) {
while (packet_ready) {
packet_ready = 0;
jd_frame_t *f = jd_tx_get_frame();
if (f) {
if (transport)
transport->send_frame(transport_ctx, f);
jd_tx_frame_sent(f);
}
}
}
Morty Proxy This is a proxified and sanitized view of the page, visit original site.