mirror of
https://gitlab.com/veilid/veilid.git
synced 2025-09-28 14:59:44 -04:00
start of refactoring veilid_api
This commit is contained in:
parent
971fa94751
commit
c0a42ac90c
8 changed files with 647 additions and 565 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue