uvgrtp-base/include/zrtp/error.hh

35 lines
708 B
C++
Raw Normal View History

2020-02-02 07:59:42 +00:00
#pragma once
#include "frame.hh"
#include "socket.hh"
#include "util.hh"
#include "zrtp/defines.hh"
#include "zrtp/zrtp_receiver.hh"
2020-02-02 07:59:42 +00:00
2020-04-27 11:07:24 +00:00
namespace uvg_rtp {
2020-02-02 07:59:42 +00:00
namespace zrtp_msg {
PACK(struct zrtp_error {
2020-02-02 07:59:42 +00:00
zrtp_msg msg_start;
uint32_t error;
uint32_t crc;
});
2020-02-02 07:59:42 +00:00
class error {
public:
error(int error_code);
~error();
rtp_error_t send_msg(uvg_rtp::socket *socket, sockaddr_in& addr);
2020-02-02 07:59:42 +00:00
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_;
};
};
};