(future)
| 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) |
nothing calls this directly
no test coverage detected