Questions tagged [protocol]
The protocol tag has no usage guidance.
86
questions
0
votes
0
answers
32
views
"Generifying" a request-oriented protocol
A colleague of mine is working on some software which involves a client process (possibly more than one, although not lots) and a server process. They typically communicate on the same machine but in ...
0
votes
2
answers
83
views
Deserializing serial protocol enums: Recoverable or unrecoverable errors?
I am currently implementing a library in Rust that implements a proprietary serial protocol.
The protocol specifies several enum values, that mostly are returned by the hardware as u8s (bytes), but ...
0
votes
2
answers
201
views
What IP protocol number should I use for my custom IP protocol? [closed]
I want do develop an IP based protocol oriented to smallest possible data overhead. For example UDP adds overhead of 8 bytes header. I want zero header.
I will use this protocol via 2G mobile network ...
1
vote
2
answers
566
views
Software Design: Decoupling when highly dependent on a third party library
As part of an university project I am currently working on an eeg-biosignal classifier. While the project itself doesn't really focus on design ("anything that works") I am trying to learn ...
6
votes
3
answers
3k
views
Difference between API and protocol?
What's the difference between an API and a protocol?
To use a specific example: Is Coinbase's choice to refer to its WebSocket client specification as an "API" appropriate? It seems that ...
1
vote
2
answers
58
views
adding optional code for bad protocol state check
I've got a GRPC API that I'm designing. It includes an RPC method that requires the caller follow-up with another API call. Some pseudo-code a client might write:
val apiInstsance = makeAPIInstance()
...
-1
votes
2
answers
131
views
Protocol Design robustness against corruption
I am currently in the design phase of a binary protocol which is intended to be agnostic of the transport layer, meaning it should work on top of for example websockets as well as serial device to ...
-1
votes
2
answers
192
views
What are the benefits of HTTP statuses compared to custom JSON based protocol?
I am currently developing a service and a client and I use HTTP statuses for communicating certain info.
For example, I have a POST /vikings endpoint that starts a long running process to create a ...
0
votes
2
answers
994
views
Is it possible to implement a RESTful API with a protocol other than HTTP(S)?
I was confused by the distinction between REST and HTTP, and I found this article that cleared things up for me. In summary, it explained that REST is a set of general principles for web communication,...
1
vote
2
answers
214
views
Should the client handle unsolicited protocol events from the backend?
This is a very generic question not much related to any language/protocol.
I have a desktop application and a backend that communicate via TCP. Most protocol events are paired -- request/response. For ...
1
vote
0
answers
56
views
advice for web communication protocol for "streaming" multiple JSON objects to multiple clients
As a hobby / to learn I am building an app in JavaScript using Node.js where a component of it will take input from a client, send it to a server, and then broadcast it to other clients. For ...
-5
votes
1
answer
2k
views
What are services and interfaces of a layer in a computer network model? [closed]
In Tanenbaum's Computer Networks book
Three concepts are central to the OSI model:
Services.
Interfaces.
Protocols.
Probably the biggest contribution of the OSI model is that it makes
the ...
2
votes
1
answer
637
views
Creating an internet gateway for a Bluetooth Low Energy device
I have a device that connects using Bluetooth Low Energy (BLE). I want it to communicate with a server over the internet using a smartphone as a gateway.
I have thought of different approaches and I ...
-3
votes
1
answer
100
views
What exactly is HTTP/2 protocol
Saw below definition on https://http2.github.io/:
What is HTTP/2?
HTTP/2 is a replacement for how HTTP is expressed “on the wire.” It is not a ground-up rewrite of the protocol; HTTP methods, status ...
2
votes
3
answers
620
views
Is RPC itself a network protocol?
Design Data Intensive Applications compares RPC and REST. It says
The RPC model tries to make a request to a remote network service look the same as calling a function or method in your programming ...