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:
parent
9ee98e869e
commit
061a3c418e
BIN
dist/tunnel-0.1.0b.tar.gz
vendored
BIN
dist/tunnel-0.1.0b.tar.gz
vendored
Binary file not shown.
4
tunnel.c
4
tunnel.c
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user