#ifndef ANGEL_WINGS_H #define ANGEL_WINGS_H #ifndef WIN32 #include #include #include #include #else #include #include #include #include // Need to link with Ws2_32.lib, Mswsock.lib, and Advapi32.lib #pragma comment(lib, "Ws2_32.lib") #pragma comment(lib, "Mswsock.lib") #pragma comment(lib, "AdvApi32.lib") #endif #include #include #include #include #include class WingsServerInfo { public: std::mutex mutex; std::string addressString; uint64_t port; int sockfd; bool ipv6; }; extern std::mutex serverInfoVectorMutex; extern std::vector serverInfoVector; Dart_Handle HandleError(Dart_Handle handle); void wings_AddressToString(Dart_NativeArguments arguments); void wings_BindSocket(Dart_NativeArguments arguments); void wings_CloseSocket(Dart_NativeArguments arguments); void wings_Send(Dart_NativeArguments arguments); void wings_StartHttpListener(Dart_NativeArguments arguments); #endif