Alexander Bluhm
22e5e84525
build(openbsd): compile options
...
Special compiler flags for OpenBSD are no longer necessary. The
system compiler is now clang, and the default options used for other
operating systems work fine. On OpenBSD everything is compiled
with PIC anyway to allow random address layout. The current logic
was implemented in 4fbef71447 with
the commit message "try building as rpm" which makes no sense.
2020-04-09 13:09:14 +02:00
Julius Pfrommer
4d2eebca1c
refactor(client): Clean up async connect
2020-02-29 13:09:46 +01:00
matkonnerth
758166b9ba
fixes compile error of network_tcp.c when open is added as cmake subdirectory
2020-02-27 00:27:24 +01:00
Jonas Green
632d490d6d
Added copyright notices for HMS Industrial Networks contributions ( #3458 )
2020-02-25 14:40:07 +01:00
Piotr Nikiel
a97cdb31b8
attempt at returning bad error code when given network layer cant be started
2020-02-24 21:39:51 +01:00
Jonas Green
83b5905418
feat(plugin): Added possibility to configure max TCP connections limit
...
In for example LWIP the number of TCP connection resources must be
configured at compile time. On a device with several protocols that
relies on TCP they must share this common pool of TCP resources. To
avoid one protocol allocating all TCP resources they must limit
themselfs in the number of TCP connections they allocate.
2020-02-21 12:27:26 +01:00
Andranik Simonyan
af9767240c
fix(arch): Do not ignore timeout in ws listen to reduce cpu usage; add some notes
2020-02-13 13:10:00 +01:00
Andranik Simonyan
e9ff3bf60f
refactor(arch): Pad ws send buffer on allocation to avoid copying
2020-02-13 13:10:00 +01:00
Andranik Simonyan
2eb713e36a
fix(arch): Fix an invalid memory access in ws layer
2020-02-13 13:10:00 +01:00
cldhms
eba3a38816
Replaced format specifiers with portable versions
...
Resolved warnings for platforms where standard data types
doesn't match the platform the code was originally written for.
Using macros from <inttypes.h> gives portable format specifiers.
Some older versions of VS don't support inttypes.h, separate PRI
defines have been added for those versions of VS.
2020-02-03 10:33:21 +01:00
Jonas Green
3f1e560a07
feat(core): Add statistics logic for Networking
2020-02-02 13:17:52 +01:00
Julius Pfrommer
a25bb75393
refactor(core): Move ConnectionConfig into SecureChannel
2020-01-18 21:15:08 +01:00
Julius Pfrommer
fd998e4ad9
refactor(core): Connection->recv can be called with a preallocated buffer
2020-01-18 21:15:08 +01:00
Julius Pfrommer
d332c9d40b
refactor(core): Assemble complete chunks in the SecureChannel
2020-01-18 21:15:08 +01:00
Julius Pfrommer
270f5f994a
fix(arch): Fix receiving with a timeout of 0
2020-01-18 21:15:08 +01:00
Andranik Simonyan
daeaab01ab
fix(arch): Prepend the incomplete chunk in WebSocket layer
2020-01-11 10:18:26 +01:00
Andranik Simonyan
36688a3607
fix(arch): Clean up message queue on connection free (WebSocket layer)
2020-01-11 10:18:26 +01:00
Andranik Simonyan
a7c17aa115
fix(arch): Fix memory access after free (WebSocket layer)
2020-01-11 10:18:26 +01:00
Stefan Profanter
ce2894cf0f
feat(freertos): Add define to use posix clock functions (supported on ESP32)
2019-12-03 20:22:12 +01:00
Stefan Profanter
60ea3d6f5d
feat(core): Allow setting custom ip address list if platform does not support getifaddr
...
This is the case e.g. on an ESP32 chip
2019-11-20 09:23:38 +01:00
Julius Pfrommer
88dbcb6d64
refactor(core): Remove the unused macro UA_LOCK_TYPE_NAME
2019-11-10 16:50:18 +01:00
Stefan Profanter
1748f820ab
fix(arch): FreeRTOS use task.h include without prefix
2019-11-05 12:37:52 +01:00
Stefan Profanter
60f55a6ad6
fix: Use correct include path for freertos/task.h
2019-10-24 20:28:14 +02:00
Julius Pfrommer
e347222a88
refactor(core): Rename deleteMembers to clear in UA_ServerNetworkLayer
2019-10-03 15:14:24 +02:00
Julius Pfrommer
6c777640e6
refactor(core): Replace UA_Connection_deleteMembers with UA_Connection_clear
2019-10-03 15:14:24 +02:00
Klaus Schick
cc94b6aa0f
Server: Asynchronous Operations API / Implementation for methods
2019-09-12 15:20:01 +02:00
Stefan Profanter
01fae7b5b4
Merge remote-tracking branch '1.0' into master
2019-09-02 14:34:18 +02:00
Stefan Profanter
a06a792fa8
fix(server): Correctly initialize application description discovery urls for custom hostname
...
fixes #3048
2019-08-30 21:27:48 +02:00
Ubuntu
30c8b7d92c
feat(multithreading): Adding new macro for assertions and rename UA_LOCK_RELEASE to UA_LOCK_DESTROY
2019-08-27 07:44:34 +02:00
Ubuntu
62f31ae700
fix(server): Add missing macro definitions for multithreading
2019-08-21 00:09:37 +02:00
Ubuntu
2b3a8cbc91
feat(server): Adding multithreading architecture with additional refactoring
2019-08-19 23:36:03 +02:00
melkorb
f9ceec7be7
Update network_tcp.c
2019-08-09 21:42:41 +02:00
matkonnerth
347a486f53
WebSocketTransport: base implementation
...
add compile definitions for websocket server
geändert: CMakeLists.txt
geändert: plugins/ua_config_default.c
fix CMakeLists
fix missing callback for UA_Connection
remove mountpoint, not necessary
set timeout of lws_service to zero, otherwise it will block the main event loop
narrow scope of variable
add logging
rework serverconfig
geändert: CMakeLists.txt
geändert: examples/tutorial_server_variable.c
geändert: plugins/include/open62541/server_config_default.h
geändert: plugins/ua_config_default.c
add send queue
fix rx,tx buffer size
fix memory leaks, cmake config
apply code formatter
modified: arch/network_ws.c
remove global variables
remove global vars
geändert: CMakeLists.txt
geändert: arch/network_ws.c
remove unnecessary comments
2019-07-24 20:05:10 +02:00
Stefan Profanter
6fe8453249
Untabify
...
Used command:
`find . \( -name '*.c' -o -name '*.h' \) -not \( -path "./deps/*" -prune \) ! -type d -exec bash -c 'expand -t 4 "$0" > /tmp/e && mv /tmp/e "$0"' {} \;`
2019-05-25 09:09:46 +02:00
Stefan Profanter
4a9bcf38c0
Stack: Add support for dynamic port assigning
...
Fixes #2416
2019-05-06 09:33:15 +02:00
Stefan Profanter
c8da8302db
Stack: Correct cast of SOCKET to int on Windows
...
Fixes #2634
2019-05-01 07:52:45 +02:00
Julius Pfrommer
3ac9d00bfd
Network: Fix computation of timeSinceStart; Fix 2658
2019-04-27 16:50:16 +02:00
Stefan Profanter
f19a6a1839
Stack: Correct include for architecture related headers
...
Fixes #2646
2019-04-18 08:01:45 +02:00
Jose Cabral
fd5a85a290
Fix header and crosscompilation as static library
2019-04-05 12:17:13 +00:00
Stefan Profanter
338900b865
Fix "Null pointer passed as argument 2, which is declared to never be null"
2019-04-04 12:30:18 +00:00
Jose Cabral
e8c45dc27f
Cast xTaskGetTickCount to Ua_DateTime before using
2019-04-04 12:10:16 +00:00
Jose Cabral
3027f6a5f7
Hide UA_fileExist behind UA_ENABLE_DISCOVERY_SEMAPHORE
2019-04-04 12:10:16 +00:00
Jose Cabral
17e2143530
Cleanup of freeRTOS and LwIP
2019-04-04 12:10:16 +00:00
Julius Pfrommer
b230919326
Demote warning if the network select call was aborted (e.g. via a signal)
2019-04-03 07:51:40 +02:00
Julius Pfrommer
bf9828b5b6
Optional singleton malloc that can be switched via a global variable
2019-04-03 07:51:40 +02:00
Mark Giraud
d070a2ff51
Clean up implementation specific behavior and some other code smells
2019-03-22 19:33:15 +00:00
Stefan Profanter
ecee9f241e
CMake: Correct installation if public headers
2019-03-21 20:16:31 +01: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
Benjamin Bara
9e95f3d767
Stack: Various small reformatting to fix build after running clang-format
2019-03-21 11:50:15 +00:00