mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-10 18:10:56 +09:00
LibCore: Move Stream-based sockets into the Core
namespace
This commit is contained in:
parent
d43a7eae54
commit
a96339b72b
Notes:
sideshowbarker
2024-07-17 07:25:39 +09:00
Author: https://github.com/timschumi
Commit: a96339b72b
Pull-request: https://github.com/SerenityOS/serenity/pull/17406
Reviewed-by: https://github.com/linusg
123 changed files with 1157 additions and 1100 deletions
|
@ -8,6 +8,7 @@
|
|||
#include <AK/HashTable.h>
|
||||
#include <LibCore/ArgsParser.h>
|
||||
#include <LibCore/EventLoop.h>
|
||||
#include <LibCore/Socket.h>
|
||||
#include <LibCore/Stream.h>
|
||||
#include <LibCore/System.h>
|
||||
#include <LibMain/Main.h>
|
||||
|
@ -71,7 +72,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
}
|
||||
|
||||
Core::EventLoop loop;
|
||||
auto socket = TRY(Core::Stream::UDPSocket::connect(target, port));
|
||||
auto socket = TRY(Core::UDPSocket::connect(target, port));
|
||||
|
||||
if (verbose)
|
||||
warnln("connected to {}:{}", target, port);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue