26 #ifndef NFD_DAEMON_FACE_TCP_TRANSPORT_HPP 27 #define NFD_DAEMON_FACE_TCP_TRANSPORT_HPP 47 TcpTransport(protocol::socket&& socket, ndn::nfd::FacePersistency persistency, ndn::nfd::FaceScope faceScope);
63 handleError(
const boost::system::error_code& error)
final;
70 handleReconnect(
const boost::system::error_code& error);
73 handleReconnectTimeout();
78 static time::milliseconds s_initialReconnectWait;
82 static time::milliseconds s_maxReconnectWait;
86 static float s_reconnectWaitMultiplier;
89 typename protocol::endpoint m_remoteEndpoint;
97 time::milliseconds m_nextReconnectWait;
103 #endif // NFD_DAEMON_FACE_TCP_TRANSPORT_HPP
#define NFD_LOG_MEMBER_DECL_SPECIALIZED(cls)
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
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