1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#[macro_use]
extern crate serde_derive;
extern crate serde;
extern crate serde_yaml;
extern crate rand;
#[macro_use]
extern crate log;
extern crate time;
extern crate chrono;
extern crate timer;
extern crate opcua_types;
extern crate opcua_core;
type DateTimeUTC = chrono::DateTime<chrono::UTC>;
mod services;
mod comms;
mod session;
pub mod server;
pub mod subscriptions;
pub mod config;
pub mod address_space;
pub mod util;
pub mod prelude {
pub use opcua_core::prelude::*;
pub use address_space::*;
pub use config::*;
pub use server::*;
pub use subscriptions::*;
pub use util::*;
}
pub mod constants {
use opcua_types::Double;
pub const DEFAULT_HELLO_TIMEOUT_SECONDS: u32 = 120;
pub const DEFAULT_OPC_UA_SERVER_PORT: u16 = 1234;
pub const DEFAULT_MAX_SUBSCRIPTIONS: u32 = 100;
pub const MIN_PUBLISHING_INTERVAL: Double = 0.05f64;
pub const MIN_SAMPLING_INTERVAL: Double = 0.05f64;
pub const DEFAULT_DATA_CHANGE_QUEUE_SIZE: usize = 1;
pub const MIN_DATA_CHANGE_QUEUE_SIZE: usize = 1;
pub const MAX_DATA_CHANGE_QUEUE_SIZE: usize = 10;
pub const DEFAULT_MONITORED_ITEM_CAPACITY: usize = 100;
pub const SUBSCRIPTION_TIMER_RATE_MS: i64 = 10;
pub const SESSION_TIMEOUT: f64 = 50000f64;
pub const MAX_REQUEST_MESSAGE_SIZE: u32 = 32768;
pub const MAX_KEEP_ALIVE_COUNT: u32 = 30;
}
#[cfg(test)]
mod tests;