|
@@ -120,28 +120,28 @@ void UA_EXPORT UA_Connection_deleteMembers(UA_Connection *connection);
|
|
|
|
|
|
/**
|
|
|
* EndpointURL Helper
|
|
|
- * ^^^^^^^^^^^^^^^^^^
|
|
|
- */
|
|
|
-
|
|
|
-/**
|
|
|
- * Split the given endpoint url into hostname and port
|
|
|
+ * ^^^^^^^^^^^^^^^^^^ */
|
|
|
+/* Split the given endpoint url into hostname and port
|
|
|
* @param endpointUrl The endpoint URL to split up
|
|
|
- * @param hostname the target array for hostname. Has to be at least 256 size. If an IPv6 address is given, hostname contains e.g. '[2001:0db8:85a3::8a2e:0370:7334]'
|
|
|
+ * @param hostname the target array for hostname. Has to be at least 256 size.
|
|
|
+ * If an IPv6 address is given, hostname contains e.g.
|
|
|
+ * '[2001:0db8:85a3::8a2e:0370:7334]'
|
|
|
* @param port set to the port of the url or 0
|
|
|
- * @param path pointing to the end of given endpointUrl or to NULL if no path given. The starting '/' is NOT included in path
|
|
|
- * @return UA_STATUSCODE_BADOUTOFRANGE if url too long, UA_STATUSCODE_BADATTRIBUTEIDINVALID if url not starting with 'opc.tcp://', UA_STATUSCODE_GOOD on success
|
|
|
- */
|
|
|
-UA_StatusCode UA_EXPORT UA_EndpointUrl_split(const char *endpointUrl, char *hostname, UA_UInt16 * port, const char ** path);
|
|
|
-
|
|
|
-/**
|
|
|
- * Convert given byte string to a number. Returns the number of valid digits.
|
|
|
- * Stops if a non-digit char is found and returns the number of digits up to that point.
|
|
|
- * @param buf
|
|
|
- * @param buflen
|
|
|
- * @param number
|
|
|
- * @return
|
|
|
+ * @param path pointing to the end of given endpointUrl or to NULL if no
|
|
|
+ * path given. The starting '/' is NOT included in path
|
|
|
+ * @return UA_STATUSCODE_BADOUTOFRANGE if url too long,
|
|
|
+ * UA_STATUSCODE_BADATTRIBUTEIDINVALID if url not starting with
|
|
|
+ * 'opc.tcp://', UA_STATUSCODE_GOOD on success
|
|
|
*/
|
|
|
-size_t UA_EXPORT UA_readNumber(UA_Byte *buf, size_t buflen, UA_UInt32 *number);
|
|
|
+UA_StatusCode UA_EXPORT
|
|
|
+UA_EndpointUrl_split(const char *endpointUrl, char *hostname,
|
|
|
+ UA_UInt16 * port, const char ** path);
|
|
|
+
|
|
|
+/* Convert given byte string to a positive number. Returns the number of valid
|
|
|
+ * digits. Stops if a non-digit char is found and returns the number of digits
|
|
|
+ * up to that point. */
|
|
|
+size_t UA_EXPORT
|
|
|
+UA_readNumber(UA_Byte *buf, size_t buflen, UA_UInt32 *number);
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
} // extern "C"
|