update session manager interface definition; define ex_data interface; delete the event design

This commit is contained in:
liuxueli
2022-08-25 18:13:46 +08:00
parent 9cfa120ae7
commit e3ea4d0729
17 changed files with 623 additions and 172 deletions

View File

@@ -0,0 +1,55 @@
#include <stddef.h>
#include "session_internal_types.h"
const char *session_get_name(const struct stellar_session *session)
{
return nullptr;
}
uint8_t session_get_direction(const struct stellar_session *session)
{
return SESSION_DIR_DOUBLE;
}
uint8_t session_get_current_direction(const struct stellar_session *session)
{
return SESSION_DIR_C2S;
}
uint64_t session_get_createtime_ms(const struct stellar_session *session)
{
return 123456778;
}
uint64_t session_get_lasttime_ms(const struct stellar_session *session)
{
return 123457890;
}
enum session_type session_get_type(const struct stellar_session *session)
{
return SESSION_TYPE_TCP;
}
struct stellar_packet *session_get_packet(struct stellar_session *session)
{
return nullptr;
}
enum session_state session_get_state(struct stellar_session *session)
{
return SESSION_STATE_ACTIVE;
}
const char *session_get_payload(struct stellar_session *session)
{
return nullptr;
}
size_t session_get_payload_length(struct stellar_session *session)
{
return 0;
}