Questions tagged [protocols]
A common means for (un)related objects to communicate with each other.
protocols
5,615
questions
0
votes
0
answers
25
views
Type 'any Shape' cannot conform to 'Shape'
I am trying to create different shapes on a card based on the card type in Swiftui.
import SwiftUI
let shapes: [any Shape] = [Circle(), Rectangle(), Ellipse()]
struct CardView: View {
var body: ...
0
votes
0
answers
15
views
Information required on the BOF2 ANPR protocol [closed]
Does anyone have any information on the BOF2 ANPR data transfer protocol?
I have searched everywhere for it on the Home Office, GitHub and here.
Any help is greatly appreciated.
-1
votes
1
answer
30
views
XCode tests issue: 'any Protocol' does not conform to expected type 'Protocol' insert 'as! Protocol'
Started adding tests to supplementary objects
Tested class code:
class TokenAdapter {
private let tokenProvider: TokenProviderProtocol!
private let session: SessionProtocol!
// MARK: - Init
...
-1
votes
0
answers
19
views
equal cost multiple path route in OSPF OMNET++
This is my network, and assuming all cost for ospf in the links are 1, there are two path from 1-4 obviously.
I tried in the real network and the result shows that the network tries to get advantage ...
1
vote
1
answer
98k
views
Why the default implementation of xxx.pb.go use global registry, can I modify it to avoid namesapce conflict?
From the official doc says. It will meet a namespace conflict if I have a single proto file and using it generated two pb in different pkg. For example, example.proto is generate into two example.pb....
-3
votes
0
answers
36
views
HTTPS or git ? Who is more stable and reliable?
Which is better HTTPS or GIT protocol if you have an unreliable connection.
P.S. I have a problem downloading via https from the site github.com . Are there frequent reconstructions, etc. is the GIT ...
0
votes
1
answer
37
views
Relative Import in Protobuf
Folder structure:
service.proto
syntax = "proto3";
package service;
option go_package = "../../../proto-generated/user/service";
import "user/models/models....
0
votes
1
answer
37
views
What are the steps to conform to the FieldRelationshipType protocol to use Field.Relationship in CoreStore?
Trying to learn CoreStore 9.2.0 with Swift 5.10
After compilation errors I have attempted to back my @Field.Relationship properties with the aliases and, at times, methods that are required to conform ...
-1
votes
0
answers
19
views
Matter dissector for wireshark
I'm working on a project for my degree thesis. The project in question is the wireshark dissector for the matter protocol. The main problem is that I should try to transform the interaction model ...
1
vote
1
answer
29
views
Why am I unable to connect a webservice with tlsv1.2 protocol?
I need to access a web service using C# and so far everything has worked well. Recently they changed the security protocol to TLSV1.2 and so I can no longer access it with the following return:
...
2
votes
1
answer
79
views
Use of protocol as a type must be written with any (Learning Purposes)
I've translated code from a functional programming language to Swift, and it works well when verifying via variables. However, I encounter an error when testing, attributed to Streamable and any ...
0
votes
0
answers
7
views
About checksum calculation in bank treminal transaction protocol TITP
We are implementing a bank treminal transaction protocol TITP on POS device to directly card processing server.
TITP stand for Tranzware Iso Terminal Protocol. And our connection is raw socket.
From ...
0
votes
1
answer
38
views
How can I speed up my Android Bluetooth reception?
Hardware
The Bluetooth device is powered by a chip called atmega32 and uses a bm78 Bluetooth chip.
The clock frequency of the MCU chip is 14.7456 MHz.
The baud rate of Bluetooth device is 115200.
The ...
1
vote
0
answers
64
views
Use a `Protocol` instead of concrete @MainActor class produces an error
Could anyone please clarify how the concurrency checking works in my case? I have an actor that calls the foo method of a @MainActor class:
actor MyActor {
let property: MainActorClass
init(...
0
votes
1
answer
44
views
How can I improve debug information shown on SwiftData properties marked as _SwiftDataNoType?
My function fetches some SwiftData records and creates others. When I inspect them in the debugger, none of their non-nil properties are shown.
Is there something I can do to enable it to display ...