MCPcopy Create free account
hub / github.com/FreeOpcUa/python-opcua / clb

Method clb

opcua/client/ua_client.py:200–204  ·  view source on GitHub ↗
(future)

Source from the content-addressed store, hash-verified

198 # use callback to make sure channel security parameters are set immedialty
199 # and we do no get race conditions
200 def clb(future):
201 response = struct_from_binary(ua.OpenSecureChannelResponse, future.result())
202 response.ResponseHeader.ServiceResult.check()
203 self._connection.set_channel(response.Parameters, params.RequestType, params.ClientNonce)
204 clb.future.set_result(response)
205 clb.future = Future() # hack to have a variable only shared between a callback and us
206
207 self._send_request(request, message_type=ua.MessageType.SecureOpen, callback=clb)

Callers

nothing calls this directly

Calls 3

struct_from_binaryFunction · 0.90
checkMethod · 0.80
set_channelMethod · 0.80

Tested by

no test coverage detected