sapling/common/network/if/Address.thrift
Yedidya Feldblum 0e620ade4d Cut D support from assorted .thrift files
Summary: Cut D support from assorted .thrift files.

Reviewed By: simpkins, markisaa, GirasoleY

Differential Revision: D15492500

fbshipit-source-id: 68c7fb4ff6c8917be0db961c7bdaa62a75f1b300
2019-05-29 02:32:16 -07:00

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,
}