Not using standard library allows better interfaces.
constexpr u8 ip[4] = {127, 0, 0, 1};
constexpr u16 port = 80;
int
main()
{
try
{
net::tcp master{};
io::info("Connecting to ", ip, ":", port, " ...");
master.connect(ip, port);
}
catch (kernel::error const& err)
{
Comment too long. Click here to view the full text.