Comments (4)
Done both, please try now.
from libua.
Hello,
Glad you like my library.
IP binding
I don't expose this by default but you can promote IPEndPoint
to a parameter for this function:
LibUA/NET Core/LibUA/Server.cs
Line 60 in c8e642d
Then you can pass in an ip to bind to here:
LibUA/NET Core/TestServer/Program.cs
Line 590 in c8e642d
For user-level permissions,
Create a session object (any type of your design) and return a new instance here: https://github.com/nauful/LibUA/blob/c8e642d10b1f39543bc1487c8e0fa496ef743b17/NET%20Core/TestServer/Program.cs#L105C41-L105C61
E.g. session.state == Unassigned now
When the client sends a username + password, assign it to your session object here:
LibUA/NET Core/TestServer/Program.cs
Line 138 in c8e642d
E.g. session.state == Logged in, session.username == username now
Implement this in your
Application
: https://github.com/nauful/LibUA/blob/c8e642d10b1f39543bc1487c8e0fa496ef743b17/NET%20Core/LibUA/Application.cs#L633Now you can check if session[Logged in, username] has permission to access any particular
NodeId
.
Storage
For memory I use a Dictionary<NodeId, MyDataTypes>
.
For storage you can use a normal database (sqlite, MySql, etc) or any time-series database (my original use case when I started this library). You can write to Dictionary and db when receiving a ua write, read from dictionary or read from db and cache in dictionary.
from libua.
Hi,
IP binding
https://github.com/nauful/LibUA/blob/c8e642d10b1f39543bc1487c8e0fa496ef743b17/NET%20Core/LibUA/Server.cs#L35C11-L35C17it would be nice to pass endpoint to constructor
For user-level permissions,
https://github.com/nauful/LibUA/blob/c8e642d10b1f39543bc1487c8e0fa496ef743b17/NET%20Core/LibUA/Application.cs#L633
the SessionHasPermissionToRead is not virtual, ovveride is not possible
best regards
from libua.
Closed, finished work.
from libua.
Related Issues (20)
- Calling an opc method which takes a complex server type as a parameter HOT 1
- Error with ExpandedNodeId HOT 3
- client.Write method is not working for me HOT 8
- Issue HOT 7
- Read Datatype return NodeId intead of Datatype HOT 1
- No event notifications HOT 3
- Ability to delete Nodes from Address Space at runtime HOT 1
- Write and read non-ascii value HOT 3
- Subfolders HOT 1
- Error monitoring HOT 19
- Improve library NodiId.TryParse HOT 1
- OPC UA PubSub via UDP HOT 1
- Unable to pass "null" as filter in MonitoredItemCreateRequest HOT 2
- Problem with freeOPAUA HOT 16
- Can not write value to my variable HOT 7
- How to create an ExtensionObject? HOT 1
- UaClient error to read a matrix HOT 7
- How to read an ExtensionObject? HOT 6
- Error DefaultAddressSpace HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libua.