libMVRgdtf 40bc00a
A library for GDTF and MVR
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
mvrxchange_session.h
Go to the documentation of this file.
1//-----------------------------------------------------------------------------
2//----- Copyright MVR Group
3//-----------------------------------------------------------------------------
4#pragma once
5
6#include "mvrxchange_prefix.h"
8#include "mvrxchange_server.h"
9
10
11namespace MVRxchangeNetwork
12{
13 class MVRxchangeSession : public std::enable_shared_from_this<MVRxchangeSession>
14 {
15 public:
16 MVRxchangeSession(tcp::socket socket, CMVRxchangeServiceImpl* impl, MVRxchangeServer* s);
17
18 public:
19 void Start();
20
21
22 private:
23 void DoRead();
24 void Deliver(const MVRxchangePacket& msg);
25
27 MVRxchangeServer* fServer;
28 tcp::socket fSocket;
29 MVRxchangePacket fReadMsg;
30 };
31
32}
Definition mvrxchange_message.h:13
Definition mvrxchange_server.h:14
Definition mvrxchange_session.h:14
void Start()
Definition mvrxchange_session.cpp:20
Definition CMVRxchangeService.h:27
Definition mvrxchange_client.h:11