Alternate e697dbe9c5997e35395fe158628dd8c5209481da
for Visual Studio 2022 and Windows 11.
読み取り中…
検索中…
一致する文字列を見つけられません
UDPPerformanceCheck.h
[詳解]
1
5
6#pragma once
7
8#define _WINSOCKAPI_ // Windows.h -> WinSock2.hの順にインクルードする際の呪文
9
10#include "PerformanceCheck.h"
11#include "Console.h"
12#include "QueryPerformance.h"
13#include "Thread.h"
14#include "SocketBuilder.h"
15#include "UdpConnector.h"
16
17#define _DUMP_DATA
18#define DUMP_COUNT 24
19#define DATA_SIZE 1460
20
21#define SECTION_UDP_CONTROLLER_1 _T("UdpController1")
22#define SECTION_UDP_CONTROLLER_2 _T("UdpController2")
23#define KEYWORD_IP_ADDRESS _T("IPAddress")
24#define KEYWORD_PORT _T("Port")
25#define KEYWORD_KICK_OFF _T("KickOff")
26
27#define SLEEP_TIME_30 30000
28#define SLEEP_TIME_120 120000
29
30int MakeData (BYTE byData[]);
31void DumpData (LPCTSTR lpctszFrom, int direction, BYTE byData[], int iDataLen); // 0:Down 1:Up
32
33BOOL DriveUdpController1ConsoleHandler (DWORD dwType);
34BOOL DriveUdpController2ConsoleHandler (DWORD dwType);
35
38
39namespace PerfCheck
40{
44 {
45 public:
47 virtual ~UDPPerformanceCheck ();
48
49 virtual BOOL DoAction ();
50 };
51
55 {
56 public:
58 virtual ~UdpController ();
59
60 bool Init ();
61 bool Start (LPCTSTR lpctszIP, USHORT wPort, LPCTSTR lpctszTargetIP, USHORT wTargetPort, bool kickOff);
62 bool SetClient (LPCTSTR lpctszIP, USHORT wPort);
63 void Stop ();
64
65 protected:
66 virtual DWORD Invoke (LPVOID lpvParam);
67
68 private:
69 bool _stop;
73 };
74}
コンソールに関するWindowsAPIを集約したクラス
性能測定用
高分解能時間計測に関するWindowsAPIを集約したクラス
ソケットに関するWindowsAPIを集約したクラス
スレッドに関するWindowsAPIを集約したクラス
void DumpData(LPCTSTR lpctszFrom, int direction, BYTE byData[], int iDataLen)
バイナリデータをコンソールにダンプします。
BOOL DriveUdpController2ConsoleHandler(DWORD dwType)
BOOL DriveUdpController1ConsoleHandler(DWORD dwType)
void DriveUdpController2()
int MakeData(BYTE byData[])
void DriveUdpController1()
UDP通信に関するWindowsAPIを集約したクラス
virtual BOOL DoAction()
処理開始
bool SetClient(LPCTSTR lpctszIP, USHORT wPort)
bool Start(LPCTSTR lpctszIP, USHORT wPort, LPCTSTR lpctszTargetIP, USHORT wTargetPort, bool kickOff)
alt::SocketBuilder * _builder
alt::UdpConnector * _connector
virtual DWORD Invoke(LPVOID lpvParam)
コールバック関数プレースホルダ
コンソールに関するクラス
Definition: Console.h:88
ソケットに関するWindowsAPIを集約したクラス
Definition: SocketBuilder.h:18
スレッドに関するWindowsAPIを集約したクラス
Definition: Thread.h:43
UDP通信に関するWindowsAPIを集約したクラス
Definition: UdpConnector.h:16
Threadクラスのスレッド実行関数を設定します。