26 #ifndef NFD_DAEMON_FACE_TCP_TRANSPORT_HPP 27 #define NFD_DAEMON_FACE_TCP_TRANSPORT_HPP 46 TcpTransport(protocol::socket&& socket, ndn::nfd::FacePersistency persistency, ndn::nfd::FaceScope faceScope);
62 handleError(
const boost::system::error_code& error)
final;
69 handleReconnect(
const boost::system::error_code& error);
72 handleReconnectTimeout();
77 static time::milliseconds s_initialReconnectWait;
81 static time::milliseconds s_maxReconnectWait;
85 static float s_reconnectWaitMultiplier;
88 typename protocol::endpoint m_remoteEndpoint;
92 scheduler::ScopedEventId m_reconnectEvent;
96 time::milliseconds m_nextReconnectWait;
102 #endif // NFD_DAEMON_FACE_TCP_TRANSPORT_HPP
#define NFD_LOG_MEMBER_DECL_SPECIALIZED(cls)
#define PROTECTED_WITH_TESTS_ELSE_PRIVATE
Implements Transport for stream-based protocols.
bool canChangePersistencyToImpl(ndn::nfd::FacePersistency newPersistency) const final
invoked by canChangePersistencyTo to perform the check
ssize_t getSendQueueLength() final
Copyright (c) 2014-2015, Regents of the University of California, Arizona Board of Regents...
TcpTransport(protocol::socket &&socket, ndn::nfd::FacePersistency persistency, ndn::nfd::FaceScope faceScope)
void afterChangePersistency(ndn::nfd::FacePersistency oldPersistency) final
invoked after the persistency has been changed
void handleError(const boost::system::error_code &error) final
A Transport that communicates on a connected TCP socket.
#define VIRTUAL_WITH_TESTS
void doClose() final
performs Transport specific operations to close the transport
#define PUBLIC_WITH_TESTS_ELSE_PRIVATE
#define FINAL_UNLESS_WITH_TESTS