This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
stellar-dns-decoder/test/dns_decoder_perf_dummy.h

30 lines
656 B
C
Raw Normal View History

2024-06-13 19:53:11 +00:00
#pragma once
2024-06-19 01:59:53 +00:00
#ifdef __cplusplus
extern "C"
{
#endif
2024-06-13 19:53:11 +00:00
#include "stellar/stellar.h"
2024-06-19 01:59:53 +00:00
#include "stellar/session.h"
2024-06-13 19:53:11 +00:00
#include <stellar/session_mq.h>
2024-06-19 01:59:53 +00:00
#ifdef __cplusplus
}
#endif
2024-06-13 19:53:11 +00:00
struct stellar_packet
{
size_t payload_sz;
uint8_t payload[2048];
2024-06-19 01:59:53 +00:00
struct session_addr addr;
char *readable_addr;
enum session_addr_type addr_type;
2024-06-13 19:53:11 +00:00
};
struct stellar *stellar_init(int worker_thread_num);
2024-06-19 01:59:53 +00:00
struct session *stellar_session_new(struct stellar *st, struct stellar_packet *cur_pkt, int tid);
2024-06-13 19:53:11 +00:00
void stellar_session_free(struct session *ss);
int session_mq_publish_message_by_name(struct session *ss, const char *topic_name, struct stellar_packet *msg);