CTR-Pia  5.4.3
Game Communication Engine
 全て クラス ネームスペース 関数 変数 型定義 列挙型 列挙型の値 ページ
framework_InetService.h
1 /*--------------------------------------------------------------------------------*
2  Copyright (C)Nintendo All rights reserved.
3 
4  These coded instructions, statements, and computer programs contain proprietary
5  information of Nintendo and/or its licensed developers and are protected by
6  national and international copyright laws. They may not be disclosed to third
7  parties or copied or duplicated in any form, in whole or in part, without the
8  prior written consent of Nintendo.
9 
10  The content herein is highly confidential and should be handled accordingly.
11  *--------------------------------------------------------------------------------*/
12 
13 
14 #pragma once
15 
16 #include <nn/pia/framework/framework_Definitions.h>
17 
18 namespace nn
19 {
20 namespace pia
21 {
22 namespace framework
23 {
24 /*!
25 @brief inet モジュールの管理クラスです。
26 */
28 {
29 public:
30  /*!
31  @brief Initialize() に各種パラメータを渡すための構造体です。
32  */
34  {
35 
36  };
37 
38  InetService()
39  {
40 
41  }
42 
43  virtual ~InetService()
44  {
45 
46  }
47  virtual Result LoginFriendServer() = 0;
48  virtual Result LogoutFriendServer() = 0;
49 
50  virtual Result InitializeInet(const InitializeInetSetting& setting) = 0;
51  virtual void FinalizeInet() = 0;
52 
53  virtual Result InitializeInetService(const InitializeInetServiceSetting& setting) = 0;
54  virtual void FinalizeInetService() = 0;
55 
56  virtual Result Dispatch() = 0;
57  virtual Result CheckConnection() = 0;
58  virtual transport::NetworkFactory* GetNetworkFactory() = 0;
59 
60  virtual Result LoginGameServer(const InitializeInetSetting* pSetting, uint32_t timeout = 30 * 1000) = 0;
61  virtual bool IsInLoginProcess() = 0;
62  virtual bool IsInLogoutProcess() = 0;
63 
64  virtual Result PreLoginProcess(const InitializeInetSetting* pSetting) = 0;
65  virtual bool IsInPreLoginProcess() = 0;
66 
67  virtual Result PostLoginProcess() = 0;
68  virtual Result LogoutGameServer(bool isBlock, bool isInChangeStateAsync) = 0;
69  virtual Result GetLogoutOutcome() = 0;
70 private:
71 
72  NN_PIA_DISALLOW_COPY(InetService);
73 };
74 }
75 }
76 } // end of namespace nn::pia::framework