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, ndn::nfd::FaceScope faceScope);
61 handleError(
const boost::system::error_code& error)
final;
68 handleReconnect(
const boost::system::error_code& error);
71 handleReconnectTimeout();
76 static time::milliseconds s_initialReconnectWait;
80 static time::milliseconds s_maxReconnectWait;
84 static float s_reconnectWaitMultiplier;
87 typename protocol::endpoint m_remoteEndpoint;
95 time::milliseconds m_nextReconnectWait;
101 #endif // NFD_DAEMON_FACE_TCP_TRANSPORT_HPP
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