Questions tagged [protocols]
A common means for (un)related objects to communicate with each other.
5,595
questions
0
votes
0
answers
6
views
LTI 1.3 activityProgress Update
I'm working on a C# implementation for a tool that should be able to communicate with the platform.
I got the launch part working, and now I'm working on sending an update for the activityProgress. ...
0
votes
1
answer
30
views
Python typing: concrete class that implements protocol with method that takes another protocol as argument
I'm trying to get the typing correct for the following example:
from __future__ import annotations
from dataclasses import dataclass
from typing_extensions import Protocol
@dataclass(frozen=True)
...
0
votes
0
answers
15
views
Flutter support for IKEv2 PSK
I need to create a mobile VPN app that requires to use IKEv2-PSK connection between the router.
I've searched for ages for flutter packages that supports IKEv2-PSK but unfortunately as far as I know, ...
0
votes
1
answer
40
views
Delegate becomes nil from one class to another
I have this protocol and class which is the delegator L
protocol userDetailsDelegate: AnyObject {
func didSendUserDetails ( _ object: LoginViewController)
}
class LoginViewController: ...
0
votes
0
answers
27
views
Check if Express App is configured to use HTTPS
I've figured out how to configure Express API to utilize https, but I have a "globals" check for some variables including things like Is_Node or Is_HTTPS because I run my source code both ...
0
votes
0
answers
24
views
Purchase events sent via the measurement protocol do not have any properties. "not set"
For the past two months, I have been trying to set up event tracking through the Measurement Protocol. My ultimate goal is to track conversions in Google Ads for setting up smart campaigns. I send the ...
0
votes
1
answer
30
views
How can server with HTTP 1.1 understand client that uses HTTP 2?
I'm confused because it looks for me like different sources says different things, I don't really understand it:
The "layer" refers to a design choice to introduce a new optimized encoding ...
0
votes
1
answer
18
views
Purpose of DST fields in SOCKS5 BIND request?
In RFC 1928, it states:
It is expected that a SOCKS server will use DST.ADDR and DST.PORT in evaluating the BIND request.
And that's the only info about the DST fields in a BIND request context.
...
-1
votes
0
answers
22
views
UDS Diagnostic Session Control
Can we switch between two non-default session? and if NO is there any specific reason for this?
Like in order to be in programming session, we must first change from default to extended and then to ...
0
votes
0
answers
44
views
ESP-NOW communication MAC adress fail
I have a problem regarding the ESP-NOW communication between ESP32 boards. I have a simple sender/receiver code. The problem I have is regarding the MAC address. If I use a broadcast address 0xFF 0xFF....
0
votes
1
answer
46
views
Updating attributes in core data instead of updating the entity
I store the employee info in core data in my app. The data from core data will be retrieved and compared with the new student data the following time I connect into the app. I want to update the ...
0
votes
0
answers
43
views
When using a tunneling service with Node.js, how do you get the actual URL from a request? (express.js)
I've searched everywhere about this issue, but I can't seem to find any solution.
Say I use Express.js in Node, and I use localtunnel or serveo to tunnel it so anybody can access the site.
I want to ...
-1
votes
0
answers
52
views
Swift lazy var of generic protocol type
TLDR: How can I create a lazy var using a generic protocol ( having an associatedtype ) ?
I've tried a couple of things I could think about, but never got to a satisfying solution in which I can keep ...
1
vote
1
answer
44
views
SwiftUI Compile Error When Using @State Property with AssociatedType
I encountered an issue in SwiftUI while working with a @State property that conforms to a protocol containing an associatedtype. This property includes an array of associatedtype elements that I need ...
0
votes
1
answer
16
views
How will be the bit stuffing applied to the identifier field 0x03E? (CAN PROTOCOL)
Suppose we are transmitting a message with identifier 0x03E.
Its binary in 11 bit form is 000 0011 1110. So while transmitting this how will it get stuffed?
After transmitting the first five zeros ...
0
votes
0
answers
24
views
How do I setup my @resultBuilder to work with ForEach, but still respect the protocol?
I have the below containers that I've defined in my project, the first one works, however the second one does not because it throws the following error.
Argument type 'ForEach<Range<Array.Index&...
0
votes
1
answer
50
views
How in swift one should use DI when conforming to a protocol with associated type?
I want to achieve something like this in swift:
protocol P {}
protocol P1: P {}
class P1Impl: P1 {}
protocol PBase {
associatedtype T: P
var prop: T { get }
}
struct S: PBase {
typealias T = ...
0
votes
1
answer
51
views
How to enable the TLSv1.2 support in java 7
We wanted to enable the TLSv1.2 protocol with version of Java 7, while also ensuring support for the lower versions.
I am aware that we can utilize SSLContext.getInstance("TLSv1.2") to ...
0
votes
0
answers
26
views
Changing view color using Delegation
I have a UIView class ( delegator) within a UIViewcontroller class . I need to change color of viewed view in the UIViewcontroller using protocol conformance from the UIViewcontroller. I have the ...
0
votes
0
answers
46
views
SQLAlchemy: using Mapped with protocols
I'm trying to define helper functions typed with protocols that will later be used on SQLAlchemy 2.0 mapped classes.
In my case, I'd need a specific mapped attribute of my SQLAlchemy class (ie a ...
0
votes
0
answers
36
views
How the TEC AND REC actually increments in CAN protocol?
I have read the specification from BOSCH but it is very confusing!
Is it like this?
A node, which detects an error and sends the ERROR FLAG (whether it is a transmitter or receiver ), will increment ...
2
votes
1
answer
52
views
How to make any View conform to View, for use with ImageRenderer?
I have this protocol
protocol Slide: View {
///
}
class MyClass {
let slides: [any Slide]
}
I then want to use ImageRenderer to make a screenshot of a given slide, since they are View, this ...
0
votes
0
answers
16
views
S3 Protocol (Aws, minio etc...) List subset ordered by creation date DESC
Is there a way to query a s3 “folder” without retrieving every single entity?
I need to query an s3 folder (where I have no control over) and it has 60k elements, it’s taking like 5 minutes to list ...
0
votes
1
answer
55
views
A better way of instantiating a class that follows a protocol
I'm working on my first iOS app part of which uses a protocol which then has a number of classes that follow it.
@protocol unitLoadoutDataController <NSObject>
@required
- (void)...
0
votes
0
answers
22
views
Is the empty line necessary for a http request without body [duplicate]
I know that in a http request, an empty line is used to seperate the header and the body. But what if there isn't any request body (For example for the GET or HEAD method request)? In this case, is an ...
0
votes
1
answer
30
views
Comparing WebSocket and Traditional TCP Chat: Similarities and Differences
I'd like to ask a question: What are the differences between WebSocket and the traditional TCP chat code based on traditional NIO? I feel like they have a similar approach, both using a HashMap to ...
0
votes
1
answer
41
views
Where can I find a list of the HID SDP record values?
I'm trying to implement an HID mouse/keyboard device with bluez. I found a keyboard only version that worked and based my code so far on that. Now I need to add mouse so I need to understand this ...
2
votes
1
answer
48
views
What cause my C# socket connection to port 2131 to be refused?
There is a server running on 192.168.0.10 we lost power and the server had to restart, the thing is our application have a function called StartReceive() that create a Socket then call a socket....
0
votes
1
answer
30
views
Class stored properties not supported in classes; did you mean 'static'?
This works fine
protocol SomeProtocol {
static func someMethod()
}
class SomeType: SomeProtocol {
class func someMethod() {
print("someMethod called")
}
}
SomeType....
0
votes
1
answer
27
views
Implement generic protocol which already has a default implementation?
I have the following code and it works:
import Foundation
import RealmSwift
protocol GetAllDBServiceProtocol {
associatedtype T: Object
func getall() -> [T]
}
extension ...
0
votes
0
answers
33
views
Organizing Multi frame app using Tkinter and MVP architecture
I built a multi frame app that uses MVP. It works but I'm not very satisfied with what I done and I hope we could discuss about the different (better) ways to do this 🙂.
In order to have a starting ...
0
votes
0
answers
25
views
What layer 4 protocols have port numbers?
What layer 4 protocols (specifically, the ones that have a protocol number registered with IANA) use port numbers?
I know TCP, UDP, SCTP (Stream Control Transmission Protocol), and DCCP (Datagram ...
0
votes
1
answer
45
views
Bootstrap process of the TALQ Smart City Protocol
I'm trying to implement the bootstrap process between CMS and gateway in TALQ 2.5.1 protocol (https://github.com/TALQ-consortium/TALQ_specification).
I don't understand how this first POST /devices ...
0
votes
1
answer
23
views
Is there anyway to get around the SSL_PROTOCOL_ERROR when accessing a website through https when it does not have ssl?
I have a simple Portfolio website with the domain address razifalah.com.
I use this domain for email server and I also use it to redirect clients to another domain address,
However if i use the https ...
-2
votes
1
answer
88
views
What is the `Identifiable` in SwiftUI, and Where we used it [closed]
I didn't understand what is the Identifiable protocol, and how can we used it
can you explain it for me
for example
struct MyStruct: Identifiable {
let id: String
}
Which scene it used, I found ...
0
votes
0
answers
18
views
Problems with Snort rule option Metadata
I've encountered a strange behavior of Snort IDS in TCP packets content filtering.
Using rule option 'metadata' I try to distinguish such protocols as SSH, FTP, IMAP, HTTP, HTTP2 using following rules:...
0
votes
0
answers
42
views
Reverse engineering checksum calculation for Proflame 2 RF remote
Intro
The SIT Proflame family of fireplace controllers is used in many brands of fireplaces.
It uses an RF remote that transmits on 315MHz.
I would like to be able to generate valid command packets ...
1
vote
0
answers
17
views
Getting issue in protoc-gen-rbi installation dependency
While doing make build I am getting this error, I tried installing using
brew install protoc-gen-rbi
After installing this I get the missing dependency as protoc-gen-ruby_csf and after installing this ...
0
votes
0
answers
191
views
Error with permission policy header: unrecognized feature: ch-ua-form-factor and Access to XMLHttprequest
<iframe width="1000" height="550"
src="https://www.youtube.com/embed/key" allow="autoplay; fullscreen;">
</iframe>
i got this error in ...
0
votes
0
answers
36
views
How to reference a protocol's associatedtype
I have some enums that conform to a protocol with an associated type:
protocol MyProtocol {
associatedtype T
func foo() -> T
}
enum MyEnum1: MyProtocol {
func foo() -> Int {
...
0
votes
0
answers
19
views
Passing data from a textfield in a custom cell to the tableview in Swift [duplicate]
I have a TableView Controller with 2 types of cell. In the first row i have a custom cell that contains a text field and a button. In the remaining rows i have standard cells just showing strings ...
0
votes
0
answers
37
views
Protocols, standards or languages that are lacking of implementation
Is there some protocol, standard or language, like YAML, GeoJSON, server-sent events, that doesn't have an library implementing it in some language like C, Python or Rust?
Looking for ideas for some ...
0
votes
0
answers
37
views
Zero-knowledge card shuffle
I'm trying to design a zero-knowledge protocol for the creation of a shuffled deck of cards for use by two players. Naturally this requires that neither player knows the order of the cards after the ...
2
votes
3
answers
111
views
Is it possible to have 2 arrays in the same ForEach in SwiftUI?
Is it possible to have 2 structs/arrays in the same ForEach (for the Option 3)? If so, how? All my attempts were unsuccessful.
import Foundation
import SwiftUI
struct Car: Vehicle, Identifiable {
...
0
votes
2
answers
68
views
Different Protocol with similar property name
I have a class bird which confirms two protocols swim and fly. Both the protocol have similar property called Speed. As Bird can fly with some speed also birds can swim with some speed. I am ...
0
votes
1
answer
23
views
Extension that only works in a particular object
I am thinking about an extension that will only work inside a particular object. I don't know if it's possible. Example:
I have a model. This model will get a function on the extension that only works ...
0
votes
0
answers
41
views
Chrome DevTools Protocol: Unable to communicate with Google Chrome 112 via Websocket
1、My Google Chrome version is 114, Using commands:chrome.exe --remote-debugging-port=9222, open chrome, and using htpp://127.0.0.1:9222/json get webSocketDebuggerUrl(ws://localhost:9222/devtools/...
1
vote
1
answer
57
views
Multiple protocol and class inheritance confusion, Swift
So I know a class can only inherit a single class but can inherit multiple protocols. I am looking at some code here and confused as to why swift is throwing me an error.
protocol ...
0
votes
0
answers
33
views
Using Swift protocols extensions instead of static funcs
I have begun to see protocols and their extensions being used solely to hold general purpose functions. These funcs only use global symbols or input parameters. The code could be contained in static ...
0
votes
0
answers
33
views
ms-search Protocol WITHOUT Subfolders
Is there a way, to start a Windows Search via search-ms Protocol and excluding subfolder? Following the documentation of the CRUMB Argument (https://learn.microsoft.com/en-us/windows/win32/search/-...