Commit Graph
28 Commits
Author SHA1 Message Date
Noel Graf d5ce01cee1 fix(tests): Fixed timing issues in tests caused by the generation of the namespace mapping table 2024-12-07 23:03:22 +01:00
Julius Pfrommer 1f8e9f04fa Merge remote-tracking branch 'origin/1.4' into merge_14_master_18 2024-07-27 11:07:53 +02:00
Julius Pfrommer 12142ad4b6 feat(tests): Add a test for async reading of the NodeClass
This previously failed as the "value adjustment" from int32 to the enum
was not done.
2024-07-22 22:30:37 +02:00
Julius Pfrommer 6c10a4e941 Merge remote-tracking branch 'origin/1.4' into merge_14_master_5 2023-10-11 20:29:02 +02:00
Julius Pfrommer 751e7dd460 feat(el): Cancel select/epoll when socket is shut down from another thread 2023-10-11 20:28:39 +02:00
Julius Pfrommer 46659f7391 refactor(server): Keep server backpointer in the DiscoveryManager 2023-10-04 10:56:26 +02:00
Julius Pfrommer dd300f3eff refactor(tests): Set a custom "fake" clock in the EventLoop for unit tests 2023-10-04 10:56:26 +02:00
Andreas Eckerstorfer 022ad60723 fix (tests): Check server instance in UNIT tests
Failed UNIT tests caused an exception in the server loop, if the
server instance could not be created.
2023-01-31 00:07:18 +01:00
Julius Pfrommer d97cad9978 refactor(client): Async client API takes timeout from request header timeout hint
The "Extended" version of the async API is no longer needed.
2023-01-26 23:38:28 +01:00
Julius Pfrommer 2cdafc1bb9 refactor(client): The client directly uses the new SecureChannel API 2022-08-05 09:13:05 +02:00
Alexander Bluhm 12e677df14 test(core): fix more sign-conversion compiler errors 2022-07-21 12:45:26 +02:00
Julius Pfrommer 747e4cbd73 fix(client): Update tests to work with the EventLoop-based client 2022-07-11 07:18:19 +02:00
Julius Pfrommer 9e193c3a89 refactor(client): Improve the highlevel async read API
Return a StatusCode in the callback.
Reduce the use of static inline functions in the API.
2021-03-26 21:48:21 +01:00
Julius Pfrommer d07b8b954d fix(tests): Fix tests with subscriptions disabled 2020-01-26 12:39:37 +01:00
Julius Pfrommer fac9b51a69 refactor(core): Decode OPN message at the client/server level
This removes an ugly indirection and unlocks more simplifications later
on.
2020-01-12 03:05:01 +01:00
Julius Pfrommer 3dce9f5ed5 refactor(server): Simplify the async operations intenally
The server config is simplified a bit. A single timeout is used for the
request. No changes to the public API otherwise.

Full integration tests for the async operations.
2019-11-10 16:50:18 +01:00
Julius Pfrommer a8a8231ba4 Tests: Various fixes for the unit tests on MinGW 2019-06-06 02:32:09 +02:00
Julius Pfrommer fd08d012d9 Server: Initialize the config in the server 2019-04-23 00:41:32 +02:00
Stefan Profanter f19a6a1839 Stack: Correct include for architecture related headers
Fixes #2646
2019-04-18 08:01:45 +02:00
Stefan Profanter 63f3653ff1 Additional header cleanup and consistent name of ns generated files 2019-03-21 20:16:31 +01:00
Julius Pfrommer c9c818868f Move header files to a more unix-like structure
This commit drops the 'ua_' prefix and changes the public includes
to the form `#include <open62541/server.h>` instead of the old
`#include <ua_server.h>`
2019-03-21 20:16:31 +01:00
Julius Pfrommer b4c9fc37eb Client: Initialize client config inside the client structure
Temporarily disable encyrption
2019-01-30 18:45:42 +01:00
Stefan Profanter 443283f8e4 Merge remote-tracking branch 'upstream/master' into feature/architectures
# Conflicts:
#	src/server/ua_services_discovery_multicast.c
#	src/ua_util.h
2018-05-23 18:06:54 +02:00
StalderT 047c5e4098 WIP client : timed async service & async highlevel functions with client worker for 0.4 (#1598)
This commit adds asynchronous services to open62541 on client side

* Asynchronous service (highlevel read/write) are available through the API that is defined in
ua_client_highlevel_async.h

* Besides the services, the connection procedure is asynchronous as well.

* A client Application that uses the asynchronous API 
adds requests by calling an asynchronous service (e.g., UA_Client_sendAsyncReadRequest(), UA_Client_sendAsyncBrowseRequest() )
checks for response with UA_Client_run_iterate() repeatedly
and processes the responses with user-defined callbacks
2018-05-15 10:54:15 +02:00
Stefan Profanter a0d6e2b166 Further adaption to architecture folder
# Conflicts:
#	plugins/ua_log_socket_error.h
2018-04-16 13:13:00 +02:00
Stefan Profanter 3619afb6bd Add unit test for windows 2017-11-22 15:56:50 +01:00
Julius Pfrommer 6278950c4b simplify client securechannel test (#1385)
* simplify client securechannel test

* rename sleeping on simulated testing clock to UA_fakeSleep

* let the server start before calling with the client
2017-11-21 12:52:23 +01:00
Mark 1b6c0554cb Move tests into subdirectories for better organization 2017-11-08 10:29:23 +01:00