-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get session info from srv #14
Comments
You pass the ChannelID to ChannelManger.Get(id uint32). I didn't plan for external access to channels and sessions or adding an event handler. Good idea! Did you know about the option to add server diagnostics?
This adds nodes to the server namespace, for each open session. |
Hi Andrew, |
Hi Franck, Also, in the release v1.0.2 you will find client may activate a session with X509Identity. Server must be provided with function that checks X509Identity, returning nil if authenticated.
|
I launch an OpcUa server with srv.ListenAndServe().
When an OpcUa client connect, I would have an event or retreive information.
I try with :
if srv.ChannelManager().Len() > 0 {
ssc, ret := srv.ChannelManager().Get(0)
if ret {
fmt.Printf("ssc: %d; SecurityMode: TODO\n", ssc.ChannelID())
} else {
fmt.Printf("ssc: NIL !!!\n")
}
}
But, it's always retrun NIL :-(
What is the id in Get method: Get(id uint32)?
How can I retrieve it ?
Thank's a lot for your response and your job on OpcUa in Go :-)
The text was updated successfully, but these errors were encountered: