26 #ifndef NFD_DAEMON_FACE_TCP_TRANSPORT_HPP 27 #define NFD_DAEMON_FACE_TCP_TRANSPORT_HPP 45 TcpTransport(protocol::socket&& socket, ndn::nfd::FacePersistency persistency);
58 handleError(
const boost::system::error_code& error)
final;
65 handleReconnect(
const boost::system::error_code& error);
68 handleReconnectTimeout();
73 static time::milliseconds s_initialReconnectWait;
77 static time::milliseconds s_maxReconnectWait;
81 static float s_reconnectWaitMultiplier;
84 typename protocol::endpoint m_remoteEndpoint;
92 time::milliseconds m_nextReconnectWait;
98 #endif // NFD_DAEMON_FACE_TCP_TRANSPORT_HPP
TcpTransport(protocol::socket &&socket, ndn::nfd::FacePersistency persistency)
cancels an event automatically upon destruction
#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
Copyright (c) 2014-2015, Regents of the University of California, Arizona Board of Regents...
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