Top "Protocols" questions

A common means for (un)related objects to communicate with each other.

How to Make a Basic Finite State Machine in Objective-C

I am attempting to build an FSM to control a timer in (iphone sdk) objective c. I felt it was …

objective-c protocols state-machine
What are the advantages of using a GET request over a POST request?

Several of my ajax applications in the past have used GET request but now I'm starting to use POST request …

ajax http http-post protocols http-get
swift protocol 'weak' cannot be applied to non-class type

I'm a bit confused. What's the difference between protocol A : class { ... } and protocol A{ ... }, and which one we should use …

swift protocols
Calling protocol default implementation from regular method

I'm wondering if it's possible to achieve such a thing. I have a Playground like this: protocol Foo { func testPrint() } …

swift oop protocols swift2
OPC UA protocol vs MQTT protocol

I would like to compare OPC UA vs MQTT on basis of the general characteristics of both the protocols such …

protocols communication mqtt iot opc-ua
Extract Server Name Indication (SNI) from TLS client hello

How would you extract the Server Name Indication from a TLS Client Hello message. I'm curently struggling to understand this …

ssl language-agnostic protocols binary-data rfc
Swift -- Require classes implementing protocol to be subclasses of a certain class

I'm creating several NSView classes, all of which support a special operation, which we'll call transmogrify. At first glance, this …

inheritance swift interface protocols typechecking
Bluetooth Protocol?

Ok, this might just be a dumb question, but I was wondering if Bluetooth follows TCP or UDP protocol? From …

bluetooth protocols network-protocols
How can I call a static function on a protocol in a generic way?

Is there a point to declaring a static function on a protocol? The client using the protocol has to call …

swift protocols swift-protocols
Simple explanation of clojure protocols

I'm trying to understand clojure protocols and what problem they are supposed to solve. Does anyone have a clear explanation …

clojure protocols