CMNetwork/inc/hgl/network/SocketEvent.h

25 lines
599 B
C
Raw Normal View History

2022-05-25 19:03:06 +08:00
#ifndef HGL_NETWORK_SOCKET_EVENT_INCLUDE
#define HGL_NETWORK_SOCKET_EVENT_INCLUDE
#include<hgl/platform/Platform.h>
2025-04-23 00:30:10 +08:00
#include<hgl/type/ArrayList.h>
2022-05-25 19:03:06 +08:00
namespace hgl
{
namespace network
{
struct SocketEvent
{
int sock;
union
{
int size; //数据长度(此属性为BSD系统独有)
int error; //错误号
};
};//struct SocketEvent
2025-04-23 00:22:46 +08:00
using SocketEventList=ArrayList<SocketEvent>;
2022-05-25 19:03:06 +08:00
}//namespace network
}//namespace hgl
#endif//HGL_NETWORK_SOCKET_EVENT_INCLUDE