start of refactoring veilid_api

This commit is contained in:
John Smith
2021-12-20 19:12:30 -05:00
parent 971fa94751
commit c0a42ac90c
8 changed files with 647 additions and 565 deletions

View File

@@ -60,16 +60,12 @@ struct Address {
union {
ipv4 @0 :AddressIPV4;
ipv6 @1 :AddressIPV6;
hostname @2 :Text;
}
}
struct SocketAddress {
union {
ipv4 @0 :AddressIPV4;
ipv6 @1 :AddressIPV6;
}
port @2 :UInt16;
address @0 :Address;
port @1 :UInt16;
}
enum ProtocolKind {
@@ -80,25 +76,21 @@ enum ProtocolKind {
}
struct DialInfoUDP {
address @0 :Address;
port @1 :UInt16;
socketAddress @0 :SocketAddress;
}
struct DialInfoTCP {
address @0 :Address;
port @1 :UInt16;
socketAddress @0 :SocketAddress;
}
struct DialInfoWS {
host @0 :Text;
port @1 :UInt16;
path @2 :Text;
socketAddress @0 :SocketAddress;
request @1 :Text;
}
struct DialInfoWSS {
host @0 :Text;
port @1 :UInt16;
path @2 :Text;
socketAddress @0 :SocketAddress;
request @1 :Text;
}
struct DialInfo {