Commit 2ff43425 authored by jan.koester's avatar jan.koester
Browse files

linux build fixes

parent 4fecc044
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -273,6 +273,7 @@ namespace netplus {
        std::vector<uint8_t> _recv_record;
        std::vector<uint8_t> _rx_netbuf;
#ifdef Windows
        AcceptContext _acpt;
        std::array<char, 2 * (sizeof(SOCKADDR_STORAGE) + 16)> _acceptBuf{};
#endif
        size_t _recv_off = 0;
@@ -333,8 +334,6 @@ namespace netplus {
            const std::vector<uint8_t>& content
        );

        AcceptContext _acpt; 

        friend class poll;
        friend class event;
        friend class EventWorker;
+1 −1
Original line number Diff line number Diff line
@@ -733,7 +733,7 @@ std::vector<uint8_t> netplus::ssl::_calculateHMAC(
void netplus::ssl::accept(std::unique_ptr<socket> &csock) {
    // Legacy synchronous accept + handshake path (used when not using AcceptEx)
    tcp::accept(csock);
    if (!csock || csock->fd() == INVALID_SOCKET) return;
    if (!csock || csock->fd() == 0) return;

    ssl* cssock = static_cast<ssl*>(csock.get());