Added TcpTransport errors
diff --git a/ndn-cpp/c/errors.c b/ndn-cpp/c/errors.c
index 394ffa2..89f30a1 100644
--- a/ndn-cpp/c/errors.c
+++ b/ndn-cpp/c/errors.c
@@ -52,6 +52,16 @@
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";
default:
return "unrecognized ndn_Error code";
}
diff --git a/ndn-cpp/c/errors.h b/ndn-cpp/c/errors.h
index 1f1e9af..56f509c 100644
--- a/ndn-cpp/c/errors.h
+++ b/ndn-cpp/c/errors.h
@@ -33,7 +33,12 @@
NDN_ERROR_DynamicUCharArray_realloc_failed,
NDN_ERROR_unrecognized_ndn_ExcludeType,
NDN_ERROR_unrecognized_ndn_KeyLocatorType,
- NDN_ERROR_decodeBinaryXMLKeyLocator_unrecognized_key_locator_type
+ NDN_ERROR_decodeBinaryXMLKeyLocator_unrecognized_key_locator_type,
+ NDN_ERROR_TcpTransport_error_in_getaddrinfo,
+ NDN_ERROR_TcpTransport_cannot_connect_to_socket,
+ NDN_ERROR_TcpTransport_socket_is_not_open,
+ NDN_ERROR_TcpTransport_error_in_send,
+ NDN_ERROR_TcpTransport_error_in_recv
} ndn_Error;
/**