Code style: Put function return type on a line by itself.
diff --git a/ndn-cpp/transport/tcp-transport.cpp b/ndn-cpp/transport/tcp-transport.cpp
index 2fbfeeb..e454e4a 100644
--- a/ndn-cpp/transport/tcp-transport.cpp
+++ b/ndn-cpp/transport/tcp-transport.cpp
@@ -17,7 +17,8 @@
{
}
-void TcpTransport::connect(const Transport::ConnectionInfo& connectionInfo, ElementListener& elementListener)
+void
+TcpTransport::connect(const Transport::ConnectionInfo& connectionInfo, ElementListener& elementListener)
{
const TcpTransport::ConnectionInfo& tcpConnectionInfo = dynamic_cast<const TcpTransport::ConnectionInfo&>(connectionInfo);
@@ -35,14 +36,16 @@
elementListener_ = &elementListener;
}
-void TcpTransport::send(const unsigned char *data, unsigned int dataLength)
+void
+TcpTransport::send(const unsigned char *data, unsigned int dataLength)
{
ndn_Error error;
if ((error = ndn_TcpTransport_send(&transport_, (unsigned char *)data, dataLength)))
throw std::runtime_error(ndn_getErrorString(error));
}
-void TcpTransport::processEvents()
+void
+TcpTransport::processEvents()
{
int receiveIsReady;
ndn_Error error;
@@ -59,12 +62,14 @@
ndn_BinaryXmlElementReader_onReceivedData(&elementReader_, buffer, nBytes);
}
-bool TcpTransport::getIsConnected()
+bool
+TcpTransport::getIsConnected()
{
return isConnected_;
}
-void TcpTransport::close()
+void
+TcpTransport::close()
{
ndn_Error error;
if ((error = ndn_TcpTransport_close(&transport_)))