Enderal SE https://mod.pub/enderal-se/38-enderal-se
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
342 B
26 lines
342 B
3 years ago
|
#pragma once
|
||
|
|
||
|
class IPipeServer
|
||
|
{
|
||
|
public:
|
||
|
struct MessageHeader
|
||
|
{
|
||
|
UInt32 type;
|
||
|
UInt32 length;
|
||
|
};
|
||
|
|
||
|
IPipeServer();
|
||
|
virtual ~IPipeServer();
|
||
|
|
||
|
bool Open(const char * name);
|
||
|
void Close(void);
|
||
|
|
||
|
bool WaitForClient(void);
|
||
|
|
||
|
bool ReadMessage(UInt8 * buf, UInt32 length);
|
||
|
bool WriteMessage(MessageHeader * msg);
|
||
|
|
||
|
private:
|
||
|
HANDLE m_pipe;
|
||
|
};
|