keepalive function.

FossilOrigin-Name: 57454a8ab73c6736d5556eab077c75b373517919718192b93f05fc856d735d30
This commit is contained in:
7u83@mail.ru 2016-03-21 07:25:32 +00:00
parent 62b42c89e7
commit 9063302951
1 changed files with 10 additions and 1 deletions

View File

@ -83,7 +83,6 @@ void cw_init_request(struct conn *conn, int msg_id)
cw_set_hdr_wbid(buffer, conn->wbid);
cw_set_hdr_rid(buffer, 0);
@ -93,6 +92,16 @@ void cw_init_request(struct conn *conn, int msg_id)
cw_set_msg_elems_len(msgptr, 0);
}
void cw_init_keepalive(struct conn *conn)
{
uint8_t *buffer = conn->req_buffer;
cw_put_dword(buffer + 0, 0);
cw_put_dword(buffer + 4, 0);
}
/**
* send a response
*/