mirror of
https://github.com/facebook/sapling.git
synced 2024-12-29 08:02:24 +03:00
0e620ade4d
Summary: Cut D support from assorted .thrift files. Reviewed By: simpkins, markisaa, GirasoleY Differential Revision: D15492500 fbshipit-source-id: 68c7fb4ff6c8917be0db961c7bdaa62a75f1b300
29 lines
607 B
Thrift
Executable File
29 lines
607 B
Thrift
Executable File
/**
|
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
*/
|
|
namespace cpp2 facebook.network.thrift
|
|
namespace cpp facebook.network.thrift
|
|
namespace py facebook.network.Address
|
|
|
|
# fbstring uses the small internal buffer to store the data
|
|
# if the data is small enough (< 24 bytes).
|
|
typedef binary (cpp.type = "::folly::fbstring") fbbinary
|
|
|
|
enum AddressType {
|
|
VUNSPEC = 0,
|
|
V4 = 1,
|
|
V6 = 2,
|
|
}
|
|
|
|
struct Address {
|
|
1: required string addr,
|
|
2: required AddressType type,
|
|
3: optional i64 port = 0,
|
|
}
|
|
|
|
struct BinaryAddress {
|
|
1: required fbbinary addr,
|
|
2: optional i64 port = 0,
|
|
3: optional string ifName,
|
|
}
|