Browse Source

Windows keyword error for _inline.

cl-refactor
subtly 10 years ago
parent
commit
30acd1343a
  1. 4
      libp2p/Common.cpp
  2. 2
      libp2p/Common.h

4
libp2p/Common.cpp

@ -144,9 +144,9 @@ std::string p2p::reasonOf(DisconnectReason _r)
} }
} }
void NodeIPEndpoint::streamRLP(RLPStream& _s, RLPAppend _inline) const void NodeIPEndpoint::streamRLP(RLPStream& _s, RLPAppend _append) const
{ {
if (_inline == StreamList) if (_append == StreamList)
_s.appendList(3); _s.appendList(3);
if (address.is_v4()) if (address.is_v4())
_s << bytesConstRef(&address.to_v4().to_bytes()[0], 4); _s << bytesConstRef(&address.to_v4().to_bytes()[0], 4);

2
libp2p/Common.h

@ -186,7 +186,7 @@ struct NodeIPEndpoint
bool isAllowed() const { return NodeIPEndpoint::test_allowLocal ? !address.is_unspecified() : isPublicAddress(address); } bool isAllowed() const { return NodeIPEndpoint::test_allowLocal ? !address.is_unspecified() : isPublicAddress(address); }
void streamRLP(RLPStream& _s, RLPAppend _inline = StreamList) const; void streamRLP(RLPStream& _s, RLPAppend _append = StreamList) const;
void interpretRLP(RLP const& _r); void interpretRLP(RLP const& _r);
}; };

Loading…
Cancel
Save