forked from LosaDev/ls-2019-source
LosaDev source snapshot 2019
This commit is contained in:
commit
c198676e97
20588 files changed
+8812878
No files matched your search
@@ -0,0 +1,28 @@
|
||||
#pragma once
|
||||
|
||||
// Operation ºÐ·ù
|
||||
typedef enum E_IO_OPERATION
|
||||
{
|
||||
E_IO_NONE = 0,
|
||||
E_IO_ACCEPT,
|
||||
E_IO_RECEIVE,
|
||||
E_IO_SEND,
|
||||
E_IO_DISCONNECT
|
||||
};
|
||||
|
||||
// Overlapped±¸Á¶Ã¼¿Í Operation¼³Á¤
|
||||
class cOverlapped
|
||||
{
|
||||
public:
|
||||
cOverlapped(void) { Clean(); }
|
||||
|
||||
public:
|
||||
void Clean() { ZeroMemory( &m_overlapped, sizeof(WSAOVERLAPPED) ); }
|
||||
|
||||
void SetOperation( E_IO_OPERATION operation ) { m_operation = operation; }
|
||||
uint8 GetOperation() { return m_operation; }
|
||||
|
||||
public:
|
||||
WSAOVERLAPPED m_overlapped;
|
||||
uint8 m_operation;
|
||||
};
|
||||
Reference in new issue
Block a user