Move functionality into ndn_SocketTransport base class.
diff --git a/ndn-cpp/c/errors.c b/ndn-cpp/c/errors.c
index af32008..cbe2de1 100644
--- a/ndn-cpp/c/errors.c
+++ b/ndn-cpp/c/errors.c
@@ -52,26 +52,18 @@
return "unrecognized ndn_KeyLocatorType";
case NDN_ERROR_decodeBinaryXMLKeyLocator_unrecognized_key_locator_type:
return "decodeBinaryXMLKeyLocator unrecognized key locator type";
- case NDN_ERROR_TcpTransport_error_in_getaddrinfo:
- return "TcpTransport error in getaddrinfo";
- case NDN_ERROR_TcpTransport_cannot_connect_to_socket:
- return "TcpTransport cannot connect to socket";
- case NDN_ERROR_TcpTransport_socket_is_not_open:
- return "TcpTransport socket is not open";
- case NDN_ERROR_TcpTransport_error_in_send:
- return "TcpTransport error in send";
- case NDN_ERROR_TcpTransport_error_in_recv:
- return "TcpTransport error in recv";
- case NDN_ERROR_UdpTransport_error_in_getaddrinfo:
- return "UdpTransport error in getaddrinfo";
- case NDN_ERROR_UdpTransport_cannot_connect_to_socket:
- return "UdpTransport cannot connect to socket";
- case NDN_ERROR_UdpTransport_socket_is_not_open:
- return "UdpTransport socket is not open";
- case NDN_ERROR_UdpTransport_error_in_send:
- return "UdpTransport error in send";
- case NDN_ERROR_UdpTransport_error_in_recv:
- return "UdpTransport error in recv";
+ case NDN_ERROR_unrecognized_ndn_SocketTransport:
+ return "unrecognized ndn_SocketTransport";
+ case NDN_ERROR_SocketTransport_error_in_getaddrinfo:
+ return "SocketTransport error in getaddrinfo";
+ case NDN_ERROR_SocketTransport_cannot_connect_to_socket:
+ return "SocketTransport cannot connect to socket";
+ case NDN_ERROR_SocketTransport_socket_is_not_open:
+ return "SocketTransport socket is not open";
+ case NDN_ERROR_SocketTransport_error_in_send:
+ return "SocketTransport error in send";
+ case NDN_ERROR_SocketTransport_error_in_recv:
+ return "SocketTransport error in recv";
default:
return "unrecognized ndn_Error code";
}