A common means for (un)related objects to communicate with each other.
Questions tagged [protocols]
5592 questions
68
votes
13 answers
Simple serial point-to-point communication protocol
I need a simple communication protocol between two devices (a PC and a microcontroller). The PC must send some commands and parameters to the micro. The micro must transmit an array of bytes (data from sensor).
The data must be noise protected…

Vanuan
- 31,770
- 10
- 98
- 102
67
votes
10 answers
Could someone please explain LDAP?
I often hear things like "Can we load our employee info using LDAP?" Yet, the title "Lightweight Directory Access Protocol" makes me think of it as a protocol rather than a physical database management system like Oracle or MSSQL.
So could someone…

Cuga
- 17,668
- 31
- 111
- 166
66
votes
8 answers
Generate Protobuf documentation?
Does anyone know of a good tool to generate Google Protobuf documentation using the .proto source files?

Markus K
- 1,585
- 2
- 17
- 25
65
votes
1 answer
Using some protocol as a concrete type conforming to another protocol is not supported
I’m trying to mix generics with protocols and I’m getting a really hard time xD
I have certain architecture implemented in an Android/Java project, and I’m trying to rewrite it to fit it in a swift/iOS project. But I’ve found this…

Víctor Albertos
- 8,093
- 5
- 43
- 71
64
votes
3 answers
html - links without http protocol
Is there a reason we include the http / https protocol on the href attribute of links?
Would it be fine to just leave it off:
my site

Web_Designer
- 72,308
- 93
- 206
- 262
64
votes
6 answers
Cannot find protocol declaration
I have two view controllers A and B, and they both have each other as their delegates.
When I did nothing except define the protocols at the beginning of the header files and #import the other's header file, I got two errors along the lines of…

Ak1
- 661
- 1
- 6
- 6
62
votes
6 answers
Which protocol? svn:// or http(s)://?
There are four common protocols for network access of SVN.
svn://repos
svn+ssh://repos
https://repos
http://repos
The Wikipedia page doesn't say much about the differences of the four different protocols. I've always preferred svn://, because it is…

Earlz
- 62,085
- 98
- 303
- 499
60
votes
4 answers
Objective-C Protocol Forward Declarations
ObjectProperties.h
@protocol ObjectProperties
@property (strong, nonatomic) NSString *name;
@property (strong, nonatomic) NSDate *date;
@property (assign, nonatomic) int64_t index;
@end
ClassA.h
#import…

edelaney05
- 6,822
- 6
- 41
- 65
59
votes
7 answers
Difference between protocol and delegates?
What is the difference between a protocol and a delegate?
and,
How can we declare variables in a protocol class?

er.mobileapp
- 1,287
- 4
- 15
- 21
55
votes
2 answers
Checking to see if an optional protocol method has been implemented
Does anyone know the best way to check to see if an optional protocol method has been implemented.
I tried this:
if ([self.delegate respondsToSelector:@selector(optionalProtocolMethod:)] )
where delegate is:
id delegate;
However, I get…

Nick Cartwright
- 8,334
- 15
- 45
- 56
53
votes
4 answers
Difference between https protocol and SSL Certificate
What is difference between https protocol and SSL Certificate that we use in web browser?
Aren't both of these used to encrypt communication between client (browser) and server?

user32262
- 8,660
- 21
- 64
- 77
53
votes
0 answers
Weak' must not be applied to non-class-bound consider adding a protocol conformance that has a class bound
I have a made a protocol in my VC in which i'm getting the location placemark from one my my swift file class. In my swift class i have declare the protocol like this,
weak var delegate: HandleMapSearch?
But the xcode is showing me error 'weak'…

raheem
- 689
- 2
- 8
- 16
52
votes
5 answers
Whats the difference between a scheme and a protocol in a URL?
I'm hoping someone can clarify to me the technical difference between a protocol and a scheme in a url. (or identify the rest of the items that can also be placed in a scheme?)
Originally I had thought they were the same and that scheme was just…

Jonathan002
- 9,639
- 8
- 37
- 58
52
votes
3 answers
Android / iOS - Custom URI / Protocol Handling
Is there a way to define some kind of handling mechanism in Android and iOS that would allow me to do intercept either of the following:
myapp:///events/3/
- or -
http://myapp.com/events/3/
I'd like to 'listen' for either the protocol or the host,…

Josh
- 12,448
- 10
- 74
- 118
50
votes
4 answers
Is TCP Guaranteed to arrive in order?
If I send two TCP messages, do I need to handle the case where the latter arrives before the former? Or is it guaranteed to arrive in the order I send it? I assume that this is not a Twisted-specific example, because it should conform to the TCP…

Smashery
- 57,848
- 30
- 97
- 128