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

Method send_response

opcua/server/uaprocessor.py:43–49  ·  view source on GitHub ↗
(self, requesthandle, seqhdr, response, msgtype=ua.MessageType.SecureMessage)

Source from the content-addressed store, hash-verified

41 self._connection.set_policy_factories(policies)
42
43 def send_response(self, requesthandle, seqhdr, response, msgtype=ua.MessageType.SecureMessage):
44 with self._socketlock:
45 response.ResponseHeader.RequestHandle = requesthandle
46 data = self._connection.message_to_binary(
47 struct_to_binary(response), message_type=msgtype, request_id=seqhdr.RequestId)
48
49 self.socket.write(data)
50
51 def open_secure_channel(self, algohdr, seqhdr, body):
52 request = struct_from_binary(ua.OpenSecureChannelRequest, body)

Callers 4

open_secure_channelMethod · 0.95
process_messageMethod · 0.95
_process_messageMethod · 0.95

Calls 3

struct_to_binaryFunction · 0.90
message_to_binaryMethod · 0.80
writeMethod · 0.45

Tested by

no test coverage detected