uvgrtp-base/include/zrtp/error.hh

35 lines
710 B
C++

#pragma once
#include "frame.hh"
#include "socket.hh"
#include "util.hh"
#include "zrtp/defines.hh"
#include "zrtp/zrtp_receiver.hh"
namespace uvg_rtp {
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(uvg_rtp::socket *socket, sockaddr_in& addr);
rtp_error_t parse_msg(uvg_rtp::zrtp_msg::receiver& receiver);
private:
uvg_rtp::frame::zrtp_frame *frame_;
size_t len_;
};
};
};