Skip to main content

Questions tagged [protocols]

A list of method declarations. Classes conforming to a protocol must implement any required methods and may implement any optional methods.

2 votes
2 answers
396 views

I could not find an implementation of the IPv4 header checksum calculation. So, I decided to made one as defined in RFC 791. I made use of the "newer" ...
Svek's user avatar
  • 1,023
3 votes
1 answer
2k views

I designed a simple timeout thrower for a bluetooth protocol I am writing. If the packet is not received in a certain amount of time, then timeout is thrown. I made it to be as plug and play as ...
Aubrey Champagne's user avatar
1 vote
1 answer
88 views

There are many side controllers in my project, like the following images. They share the same head view appearance and layout. Use protocol to extract common code . ...
dengApro's user avatar
  • 421
3 votes
1 answer
2k views

First question here on CodeReview. I was directed here from a question I asked on SO: Swift protocol with lazy property - Cannot use mutating getter on immutable value: '$0' is immutable. Goal: ...
koen's user avatar
  • 179
1 vote
1 answer
111 views

Overview I got rubber-stamped in code review today even though I called out specific concerns about my own code and asked for advice, so I'm turning to this community for advice. Thank you for taking ...
Woodrow Barlow's user avatar
6 votes
1 answer
658 views

I wrote a library implementing the RCON protocol to automate interaction with Minecraft servers. I know that there are already a couple of implementations out there, but neither I found was convincing ...
user avatar
3 votes
1 answer
734 views

I recently published an iOS control/component called BJDraggable which basically, with a call of a method, enables us to drag a view within its superview boundary. ...
bjg's user avatar
  • 227
4 votes
1 answer
151 views

I'm writing a typical client-server architecture for a chat program. My goal is to make the protocol flexible so that I could add more functionality in the future. (Any good software should allow that)...
Cosain Melic's user avatar
2 votes
1 answer
129 views

I'm developing an app that joins tele-conference calls so we use conference numbers a lot. I've got this basic structure to encapsulate the information regarding a conference number. ...
Declan McKenna's user avatar
0 votes
1 answer
273 views

I need to integrate some server API calling in which I'm likely to get response as: ...
nayem's user avatar
  • 101
2 votes
1 answer
432 views

I'm currently building a small web stack in swift for use in my iOS apps. It consists of multiple components and I want to make it resource specific; To that end, I have a ...
MrJre's user avatar
  • 131
1 vote
1 answer
314 views

I have a protocol which has quite more methods, it looks like: ...
D4ttatraya's user avatar
2 votes
1 answer
84 views

I implemented a text based protocol that is able to process any message that follows the following format ...
Bruno Costa's user avatar
  • 5,606
1 vote
1 answer
672 views

I have a situation where I have to use protocol to be conformed by NSManagedObject which has relationships with other entities. My protocol is like: ...
D4ttatraya's user avatar
2 votes
1 answer
123 views

I have a protocol where I send lots of different messages using two or three different header types (let's call them "Type A" and "Type B" messages). To simplify unit testing, my idea was to do ...
vgru's user avatar
  • 1,398

15 30 50 per page