#include <T2NamedPipeServer_Win.h>
Definition at line 26 of file T2NamedPipeServer_Win.h.
◆ UpdateStreamCallback_t
◆ T2NamedPipeServer()
Toshi::T2NamedPipeServer::T2NamedPipeServer |
( |
| ) |
|
◆ ~T2NamedPipeServer()
Toshi::T2NamedPipeServer::~T2NamedPipeServer |
( |
| ) |
|
◆ HasConnectedClient()
TBOOL Toshi::T2NamedPipeServer::HasConnectedClient |
( |
| ) |
const |
|
inline |
◆ SetMemoryStream()
void Toshi::T2NamedPipeServer::SetMemoryStream |
( |
void * | a_pMemory, |
|
|
TUINT | a_uiSize ) |
◆ SetMemoryStreamUpdateCallback()
◆ SetUserData()
void Toshi::T2NamedPipeServer::SetUserData |
( |
void * | a_pUserData | ) |
|
|
inline |
◆ Start()
TBOOL Toshi::T2NamedPipeServer::Start |
( |
const TCHAR * | a_szName, |
|
|
TUINT | a_uiSendInterval, |
|
|
TUINT | a_uiOutBufferSize = 1, |
|
|
TUINT | a_uiInBufferSize = 64 * 1024 ) |
Definition at line 82 of file T2NamedPipeServer_Win.cpp.
83{
86
87 m_uiSendInterval = a_uiSendInterval;
88 m_szName = a_szName;
89
91 pipeName.
Format(
"\\\\.\\pipe\\%s", a_szName );
92
93 m_hPipe = CreateNamedPipeA(
95 PIPE_ACCESS_OUTBOUND,
96 PIPE_TYPE_MESSAGE,
97 1,
98 a_uiOutBufferSize,
99 a_uiInBufferSize,
100 0,
101 NULL
102 );
103
104 TASSERT( INVALID_HANDLE_VALUE != m_hPipe );
105
108
109 TTRACE(
"Started named pipe '%s'\n", m_szName );
110
112 return m_bStarted;
113}
T2FormatString< 256, T2StringTraits< TCHAR > > T2FormatString256
friend T2NamedPipeServerThread
void Format(const CharType *a_szFormat,...)
constexpr CharType * Get()
◆ Stop()
void Toshi::T2NamedPipeServer::Stop |
( |
| ) |
|
Definition at line 115 of file T2NamedPipeServer_Win.cpp.
116{
117 if ( m_bStarted && m_pThread )
118 {
119 m_pThread->Destroy();
120
121 delete m_pThread;
124 }
125}
◆ T2NamedPipeServerThread
friend Toshi::T2NamedPipeServer::T2NamedPipeServerThread |
The documentation for this class was generated from the following files: