Top "Protocols" questions

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

Is IIS a web server or an application server?

Is IIS a web server or an application server? Or is it both? What is the difference between (or similarity …

.net iis webserver protocols application-server
what is 'where self' in protocol extension

I saw so many examples with below format extension Protocolname where Self: UIViewController What is where Self in protocol extension. …

swift protocols swift-protocols swift-extensions
Class-Only Protocols in Swift

I want some of my classes (not all) to conform using 'Class-Only Protocols' from docs. What I am doing is …

ios swift swift2 protocols
Protocol type cannot conform to protocol because only concrete types can conform to protocols

Within the app, we have two types of Stickers, String and Bitmap. Each sticker pack could contain both types. This …

ios swift protocols codable decodable
Swift Protocol get only settable?

why can I do this without any error: var testDto = ModelDto(modelId: 1) testDto.objectId = 2 while I define this: protocol DataTransferObject { …

ios swift protocols getter-setter
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? …

python tcp twisted protocols
How to require that a protocol can only be adopted by a specific class

I want this protocol: protocol AddsMoreCommands { /* ... */ } only to be adopted by classes that inherit from the class UIViewController. This page …

swift generics protocols
How to conform to a protocol's variables' set & get?

I'm playing around with protocols and how to conform to them. protocol Human { var height: Int { get set } } struct Boy: …

ios swift protocols getter-setter swift-protocols
What is meant by .delegate=self?

Could anyone explain the meaning of someViewController.delegate = self and self.delegate? Where do they help us?

objective-c cocoa delegates protocols delegation
Tool for drawing protocol sequence diagrams

I am looking for a tool to draw a sequence of packets sent for a sliding window protocol. There are …

protocols sequence-diagram