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-stellar-2022/src/session_manager/session_utils.cpp

56 lines
1.0 KiB
C++
Raw Normal View History

#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;
}