refactor(session manager): turning the session manager into a stellar module
This commit is contained in:
@@ -5,20 +5,8 @@ extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#include "stellar/packet.h"
|
||||
|
||||
struct tcp_segment;
|
||||
const char *tcp_segment_get_data(const struct tcp_segment *seg);
|
||||
uint16_t tcp_segment_get_len(const struct tcp_segment *seg);
|
||||
|
||||
#define TOPIC_TCP_STREAM "TCP_STREAM" //topic message: tcp_segment
|
||||
#define TOPIC_CONTROL_PACKET "CONTROL_PACKET" //topic message: packet
|
||||
|
||||
#define TOPIC_TCP "TCP" //topic message: session
|
||||
#define TOPIC_UDP "UDP" //topic message: session
|
||||
|
||||
enum session_state
|
||||
{
|
||||
SESSION_STATE_INIT = 0,
|
||||
@@ -155,6 +143,9 @@ const char *session_get0_readable_addr(const struct session *sess);
|
||||
|
||||
void session_set_discard(struct session *sess);
|
||||
|
||||
void session_set_exdata(struct session *sess, int idx, void *ex_ptr);
|
||||
void *session_get_exdata(const struct session *sess, int idx);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user