keepalive function.
FossilOrigin-Name: 57454a8ab73c6736d5556eab077c75b373517919718192b93f05fc856d735d30
This commit is contained in:
parent
62b42c89e7
commit
9063302951
@ -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
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user