1
0
mirror of https://github.com/lxsang/antd-tunnel-plugin synced 2024-12-26 01:48:21 +01:00

increse payoad length support larger than 65Kb

This commit is contained in:
lxsang 2020-12-28 13:25:13 +01:00
parent 9ee98e869e
commit 061a3c418e
2 changed files with 2 additions and 2 deletions

Binary file not shown.

View File

@ -52,7 +52,7 @@ typedef struct
uint8_t type;
uint16_t channel_id;
uint16_t client_id;
uint16_t size;
uint32_t size;
} antd_tunnel_msg_h_t;
typedef struct
@ -162,7 +162,7 @@ static int msg_read_string(int fd, char* buffer, uint8_t max_length)
}
*/
static uint8_t *msg_read_payload(int fd, uint16_t *size)
static uint8_t *msg_read_payload(int fd, uint32_t *size)
{
uint8_t *data;
if (read(fd, size, sizeof(*size)) == -1)