コード例 #1
0
 def to_binary(self):
     b = []
     b.append(uatype_UInt32.pack(self.ProtocolVersion))
     b.append(uatype_UInt32.pack(self.ReceiveBufferSize))
     b.append(uatype_UInt32.pack(self.SendBufferSize))
     b.append(uatype_UInt32.pack(self.MaxMessageSize))
     b.append(uatype_UInt32.pack(self.MaxChunkCount))
     b.append(uatypes.pack_string(self.EndpointUrl))
     return b"".join(b)
コード例 #2
0
 def to_binary(self):
     b = []
     b.append(struct.pack("<I", self.ProtocolVersion))
     b.append(struct.pack("<I", self.ReceiveBufferSize))
     b.append(struct.pack("<I", self.SendBufferSize))
     b.append(struct.pack("<I", self.MaxMessageSize))
     b.append(struct.pack("<I", self.MaxChunkCount))
     b.append(uatypes.pack_string(self.EndpointUrl))
     return b"".join(b)
コード例 #3
0
 def to_binary(self):
     b = []
     b.append(uatypes.pack_string(self.SecurityPolicyURI))
     b.append(uatypes.pack_string(self.SenderCertificate))
     b.append(uatypes.pack_string(self.ReceiverCertificateThumbPrint))
     return b"".join(b)
コード例 #4
0
 def to_binary(self):
     b = []
     b.append(self.Error.to_binary())
     b.append(uatypes.pack_string(self.Reason))
     return b"".join(b)
コード例 #5
0
 def to_binary(self):
     b = []
     b.append(uatypes.pack_string(self.SecurityPolicyURI))
     b.append(uatypes.pack_string(self.SenderCertificate))
     b.append(uatypes.pack_string(self.ReceiverCertificateThumbPrint))
     return b"".join(b)
コード例 #6
0
 def to_binary(self):
     b = []
     b.append(self.Error.to_binary())
     b.append(uatypes.pack_string(self.Reason))
     return b"".join(b)