1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-09 09:34:57 +09:00

LibCore+LibTLS: Add an API for connect()'ing 'with hostname

This just unifies the API for all three sockets (UDP, TCP and TLS)
This commit is contained in:
Ali Mohammad Pur 2024-11-01 23:51:21 +01:00 committed by Ali Mohammad Pur
parent b93d8ef875
commit d704b61066
Notes: github-actions[bot] 2024-11-20 20:44:42 +00:00
3 changed files with 31 additions and 10 deletions

View file

@ -357,6 +357,7 @@ public:
virtual void set_notifications_enabled(bool enabled) override { underlying_stream().set_notifications_enabled(enabled); }
static ErrorOr<NonnullOwnPtr<TLSv12>> connect(Core::SocketAddress, ByteString const& host, Options = {});
static ErrorOr<NonnullOwnPtr<TLSv12>> connect(ByteString const& host, u16 port, Options = {});
static ErrorOr<NonnullOwnPtr<TLSv12>> connect(ByteString const& host, Core::Socket& underlying_stream, Options = {});