mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
connect to kafka and send metadata request.
This commit is contained in:
parent
a9fdb630d9
commit
8974fe298b
8 changed files with 151 additions and 11 deletions
|
@ -23,8 +23,11 @@
|
|||
|
||||
#include <srs_kafka_stack.hpp>
|
||||
|
||||
#include <string>
|
||||
using namespace std;
|
||||
|
||||
#include <srs_kernel_error.hpp>
|
||||
|
||||
#ifdef SRS_AUTO_KAFKA
|
||||
|
||||
SrsKafkaString::SrsKafkaString()
|
||||
|
@ -196,5 +199,42 @@ SrsKafkaTopicMetadataRequest::~SrsKafkaTopicMetadataRequest()
|
|||
{
|
||||
}
|
||||
|
||||
SrsKafkaProtocol::SrsKafkaProtocol(ISrsProtocolReaderWriter* io)
|
||||
{
|
||||
skt = io;
|
||||
}
|
||||
|
||||
SrsKafkaProtocol::~SrsKafkaProtocol()
|
||||
{
|
||||
}
|
||||
|
||||
int SrsKafkaProtocol::send_and_free_message(SrsKafkaMessage* msg)
|
||||
{
|
||||
int ret = ERROR_SUCCESS;
|
||||
|
||||
// TODO: FIXME: implements it.
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
SrsKafkaClient::SrsKafkaClient(ISrsProtocolReaderWriter* io)
|
||||
{
|
||||
protocol = new SrsKafkaProtocol(io);
|
||||
}
|
||||
|
||||
SrsKafkaClient::~SrsKafkaClient()
|
||||
{
|
||||
srs_freep(protocol);
|
||||
}
|
||||
|
||||
int SrsKafkaClient::fetch_metadata(string topic)
|
||||
{
|
||||
int ret = ERROR_SUCCESS;
|
||||
|
||||
// TODO: FIXME: implements it.
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue