uvgrtp-base/include/mzrtp/error.hh

36 lines
708 B
C++
Raw Normal View History

#ifdef __RTP_CRYPTO__
2020-02-02 07:59:42 +00:00
#pragma once
#include "util.hh"
#include "frame.hh"
#include "mzrtp/defines.hh"
#include "mzrtp/receiver.hh"
2020-04-27 11:07:24 +00:00
namespace uvg_rtp {
2020-02-02 07:59:42 +00:00
namespace zrtp_msg {
PACKED_STRUCT(zrtp_error) {
zrtp_msg msg_start;
uint32_t error;
uint32_t crc;
};
class error {
public:
error(int error_code);
~error();
rtp_error_t send_msg(socket_t& socket, sockaddr_in& addr);
2020-04-27 11:07:24 +00:00
rtp_error_t parse_msg(uvg_rtp::zrtp_msg::receiver& receiver);
2020-02-02 07:59:42 +00:00
private:
2020-04-27 11:07:24 +00:00
uvg_rtp::frame::zrtp_frame *frame_;
2020-02-02 07:59:42 +00:00
size_t len_;
};
};
};
#endif