blob: d2fe8f75514681aaac752378f4831477209f170a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
/*
* Copyright (c) 2022, Ali Mohammad Pur <mpfard@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <AK/Error.h>
#include <AK/Types.h>
#include <LibIPC/Forward.h>
namespace Core {
// FIXME: Username/password support.
struct ProxyData {
enum Type {
Direct,
SOCKS5,
} type { Type::Direct };
u32 host_ipv4 { 0 };
int port { 0 };
bool operator==(ProxyData const& other) const = default;
};
}
namespace IPC {
bool encode(Encoder&, Core::ProxyData const&);
ErrorOr<void> decode(Decoder&, Core::ProxyData&);
}
|