mirror of
https://github.com/yarrick/iodine.git
synced 2024-12-26 17:47:50 +00:00
Always send latest chunk id
This commit is contained in:
parent
3eb835afe7
commit
9ca4130e9a
10
src/iodine.c
10
src/iodine.c
@ -297,13 +297,8 @@ send_chunk(int fd)
|
|||||||
buf[0] = hex[code];
|
buf[0] = hex[code];
|
||||||
|
|
||||||
/* tell server we received reply */
|
/* tell server we received reply */
|
||||||
if (server_id != 0) {
|
|
||||||
buf[1] = hex[(server_id >> 4) & 0xf];
|
buf[1] = hex[(server_id >> 4) & 0xf];
|
||||||
buf[2] = hex[(server_id >> 0) & 0xf];
|
buf[2] = hex[(server_id >> 0) & 0xf];
|
||||||
} else {
|
|
||||||
buf[1] = 'N';
|
|
||||||
buf[2] = 'A';
|
|
||||||
}
|
|
||||||
send_query(fd, buf);
|
send_query(fd, buf);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -334,13 +329,8 @@ send_ping(int fd)
|
|||||||
|
|
||||||
data[0] = userid;
|
data[0] = userid;
|
||||||
/* tell server we received reply */
|
/* tell server we received reply */
|
||||||
if (server_id != 0) {
|
|
||||||
data[1] = hex[(server_id >> 4) & 0xf];
|
data[1] = hex[(server_id >> 4) & 0xf];
|
||||||
data[2] = hex[(server_id >> 0) & 0xf];
|
data[2] = hex[(server_id >> 0) & 0xf];
|
||||||
} else {
|
|
||||||
data[1] = '1';
|
|
||||||
data[2] = '1';
|
|
||||||
}
|
|
||||||
data[3] = (rand_seed >> 8) & 0xff;
|
data[3] = (rand_seed >> 8) & 0xff;
|
||||||
data[4] = (rand_seed >> 0) & 0xff;
|
data[4] = (rand_seed >> 0) & 0xff;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user