uvgrtp-base/include/zrtp/hello_ack.hh

34 lines
684 B
C++
Raw Normal View History

#pragma once
#include "frame.hh"
#include "socket.hh"
#include "util.hh"
#include "zrtp/defines.hh"
#include "zrtp/zrtp_receiver.hh"
2020-04-27 11:07:24 +00:00
namespace uvg_rtp {
namespace zrtp_msg {
PACKED_STRUCT(zrtp_hello_ack) {
zrtp_msg msg_start;
uint32_t crc;
};
class hello_ack {
public:
hello_ack();
~hello_ack();
rtp_error_t send_msg(uvg_rtp::socket *socket, sockaddr_in& addr);
2020-04-27 11:07:24 +00:00
rtp_error_t parse_msg(uvg_rtp::zrtp_msg::receiver& receiver);
private:
2020-04-27 11:07:24 +00:00
uvg_rtp::frame::zrtp_frame *frame_;
size_t len_;
};
};
};