S2OPC OPCUA Toolkit
Loading...
Searching...
No Matches
sopc_helper_uri.h
Go to the documentation of this file.
1/*
2 * Licensed to Systerel under one or more contributor license
3 * agreements. See the NOTICE file distributed with this work
4 * for additional information regarding copyright ownership.
5 * Systerel licenses this file to you under the Apache
6 * License, Version 2.0 (the "License"); you may not use this
7 * file except in compliance with the License. You may obtain
8 * a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing,
13 * software distributed under the License is distributed on an
14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 * KIND, either express or implied. See the License for the
16 * specific language governing permissions and limitations
17 * under the License.
18 */
19
20#ifndef SOPC_HELPER_URI_H_
21#define SOPC_HELPER_URI_H_
22#define TCP_UA_MAX_URL_LENGTH 4096
23
24#include <stdbool.h>
25
26#include "sopc_enums.h"
27
33
42
43/* set given type, hostname and prefix from given URI and return true. Return false in case of failure */
44/* return false if at least one parameter is NULL */
45/* in case of failure parameters are not modified */
46SOPC_ReturnStatus SOPC_Helper_URI_SplitUri(const char* uri, SOPC_UriType* type, char** hostname, char** port);
47
48#endif /* SOPC_HELPER_URI_H_ */
enum _SOPC_ReturnStatus SOPC_ReturnStatus
Common enumerations for S2OPC.
SOPC_ReturnStatus SOPC_Helper_URI_SplitUri(const char *uri, SOPC_UriType *type, char **hostname, char **port)
SOPC_UriSwitch
Definition sopc_helper_uri.h:29
@ SOPC_URI_PORT
Definition sopc_helper_uri.h:31
@ SOPC_URI_PREFIX
Definition sopc_helper_uri.h:30
SOPC_UriType
Definition sopc_helper_uri.h:35
@ SOPC_URI_UDPUA
Definition sopc_helper_uri.h:38
@ SOPC_URI_ETHUA
Definition sopc_helper_uri.h:39
@ SOPC_URI_UNDETERMINED
Definition sopc_helper_uri.h:36
@ SOPC_URI_MQTTUA
Definition sopc_helper_uri.h:40
@ SOPC_URI_TCPUA
Definition sopc_helper_uri.h:37