uvgrtp-base/include/multicast.hh

33 lines
814 B
C++
Raw Normal View History

2019-06-20 06:22:10 +00:00
#pragma once
#include "util.hh"
#include "frame.hh"
2020-04-27 11:07:24 +00:00
namespace uvg_rtp {
2019-06-20 06:22:10 +00:00
class connection;
const int MULTICAST_MAX_PEERS = 64;
class multicast {
public:
multicast();
~multicast();
/* Add RTP connection to multicast group */
2020-04-27 11:07:24 +00:00
rtp_error_t join_multicast(uvg_rtp::connection *conn);
2019-06-20 06:22:10 +00:00
/* TODO: */
2020-04-27 11:07:24 +00:00
rtp_error_t leave_multicast(uvg_rtp::connection *conn);
2019-06-20 06:22:10 +00:00
/* TODO: */
2020-04-27 11:07:24 +00:00
rtp_error_t push_frame_multicast(uvg_rtp::connection *sender, uvg_rtp::frame::rtp_frame *frame);
2019-06-20 06:22:10 +00:00
/* TODO: */
rtp_error_t push_frame_multicast(
2020-04-27 11:07:24 +00:00
uvg_rtp::connection *sender,
2019-06-20 06:22:10 +00:00
uint8_t *data, uint32_t data_len,
rtp_format_t fmt, uint32_t timestamp
);
};
};