SEGS  0.4.2
Super Entity Game Server
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ILink.h
Go to the documentation of this file.
1 /*
2  * SEGS - Super Entity Game Server
3  * http://www.segs.io/
4  * Copyright (c) 2006 - 2018 SEGS Team (see Authors.txt)
5  * This software is licensed! (See License.txt for details)
6  */
7 
8 #pragma once
9 
10 #include "EventProcessor.h"
11 #include <cassert>
12 
13 class BitStream;
14 class LinkBase : public EventProcessor
15 {
16  // initialized to unknown session
17  uint64_t m_session_token=0;
18 public:
19 virtual ~LinkBase() = default;
20  uint64_t session_token() const { return m_session_token; }
21  void session_token(uint64_t tok) { m_session_token=tok; assert(m_session_token!=0);}
22 };
23 
Definition: BitStream.h:30
Definition: ILink.h:14
virtual ~LinkBase()=default
uint64_t session_token() const
Definition: ILink.h:20
Definition: EventProcessor.h:13
void session_token(uint64_t tok)
Definition: ILink.h:21