#pragma once

#include <util/network/address.h>
#include <util/network/socket.h>

#include <util/generic/strbuf.h>

namespace NSrvKernel {
    struct TEphemeralBoundSocket {
        TSocketHolder Socket;
        NAddr::IRemoteAddrRef Address;

        TEphemeralBoundSocket() /* throws */;
        TEphemeralBoundSocket(TStringBuf ip) /* throws */;
        ~TEphemeralBoundSocket() noexcept = default;
    };
}
