Files
2022-10-26 12:25:11 +08:00

29 lines
558 B
C++

#ifndef __WBANetwork_AsyncResult_H
#define __WBANetwork_AsyncResult_H
namespace WBANetwork
{
enum IOEventType
{
Event_None = 0x000000,
Event_Accept = 0x000001,
Event_Connect = 0x000002,
Event_Close = 0x000004,
Event_Send = 0x000008,
Event_Receive = 0x000010
};
class EventHandler;
// 비동기 I/O 작업의 결과를 받아올 정보 구조체
typedef struct tag_AsyncResult : OVERLAPPED
{
IOEventType eventType;
unsigned long transBytes;
unsigned long error;
EventHandler* handler;
BYTE szData[10240];
} AsyncResult;
}
#endif