protocols

What is the most efficient way in XCode to add a delegate's or protocol's methods to the .m file?

When one Implements an Interface (equivalent to a Protocol in Objective-C) in the .Net environment, the IDE automatically adds the properties and methods that need to be implemented to the class' file. Is there a setting that will result in a similar behavior in the Xcode environment? Will it do the same for a delegate? At this point,...

Java equivalent of Cocoa delegates / Objective-C informal protocols?

What is the Java equivalent of Cocoa delegates? (I understand that I can have an interface passed to a class, and have that class call the appropriate methods, but I'm wondering if there is any other way to achieve something closer to Cocoa/Objective-C's informal protocols) ...

What is your favorite way of doing a MITM?

Hi Guys, Many of us must have done a Man-in-the-middle (MITM) attack on their internal networks- nothing serious, just for learning :) Now there are a number of protocol vulnerabilities which make MITM possible - ARP Poison Routing, STP Claiming Root Role dual home, HSRP active router... There are also a large number of network securi...

How to conform to a self-made protocol?

I have a class with an delegate property. Anyone who wants to be a delegate must conform to a protocol. I defined everything like this: #import <UIKit/UIKit.h> @protocol TheDelegateProtocol; @interface MyClass : UIView { id<TheDelegateProtocol> theDelegate; } @property (nonatomic, assign) id<TheDelegateProtocol> theDelegate; @e...

What technology protocol or standard are you most excited about? why?

Here's some links for inspiration: List of Web Protocols Web Standards I don't know what prompted this question but I'm curious to see people's responses. ...

Are there any x.25 protocol Java libraries ?

I need to communicate with another machine using the x.25 protocol and Java. Are there any Java Libraries available which will help me to accomplish my goal and is it even possible doing it with Java ? ...

Opera calling scripts with PSN on OSX

So I want to associate a particular 'protocol' in my Opera browser with a shell script on OSX. In Opera, I therefore did: <open preferences dialog> Advanced Tab -> Programs Added 'myProtocol' and set it to open with other application '~/bin/myScript.sh' Applied settings etc. Now, when I go to myProtocol://some.url.or.other, opera is...

Whats the most widespread monitoring protocol/library?

Hi, I need to expose certain monitoring statistics from my application and I'm wondering what the most widespread framework or protocol is for doing this? ...

Does Objective-J support protocols like Objective-C?

I can't seem to find any documentation on the Objective-J language itself. Does it support @protocol like Objective-C? Is there a language spec somewhere I'm missing? ...

How do I test my TCP protocol app?

When creating apps that interface on various TCP protocols (apart from HTTP), we need to test our app and how it communicates with a real server. Now typically with shared hosting you can't install any low level service to talk protocols like POP3, IMAP for email, SIP or XMPP and for instant messaging. So are there "test" servers that ...

How to establish ethernet connection between laptop and embedded device

I'm designing a device which will be connected to a computer using ethernet. It already has a mac controller built in. When I attach the device, all that happens is the computer broadcasts a bunch of DHCP discover packets and some other packets I guess in an attempt to find the device and establish the connection. I assume I need to make...

Type id <Protocol1> does not conform to id <Protocol2> -- but it does!

Alright, I have two protocols in the same header file, let's call them Protocol1 and Protocol2. I have a main app controller that conforms to both protocols, and an NSWindowController subclass that has the following member: id <Protocol1, Protocol2> delegate; I'm getting a warning at the end of my NSWindowController subclass implemen...

Best Practice: generating and parsing network packets for a known protocol in C#?

I tried asking a similar question recently however after several answers I realized it wasn't the correct thing to ask. Is there a guide or a generally accepted practice for generating and parsing network packets based on an existing protocol like SMPP (Short Message Peer-to-Peer Protocol [Used for SMS Messages]) or various chat protoco...

How do the protocols of real time strategy games such as Starcraft and Age of Empires look?

Hello, I'm interested in how the protocols (and game loop) work for these type of games; any pointers or insights are appreciated. I guess the main loop would have a world state which would be advanced a few "ticks" per second, but how are the commands of the players executed? What kind of data needs to go back and forth? ...

How does DHT in torrents work?

I'm coding a p2p implementation that I would like to make decentralized however I'm having some trouble grasping how DHT in protocols like bittorrent work. How does the client know where the peers are if there is no tracker? Are peers stored in the actual torrent file? ...

Messaging Protocol

How should I design my message protocol so that I distinguish between user data and termination of the message. For example I take input from user to send it to client over TCP/IP, now the client-side needs to know the length of message, what I thought that I use some kind of termination by which the client recognizes that message end h...

Please help me choose a styling engine for small bits of text

I'm working on a project which will deliver small pieces of text to a display engine that will show them to the user. One of the requirements is rich styling: position, color, font, the works. Each transmission should stand alone, with its own embedded style information. I have already built a web service to deliver the text. How should...

Tool for drawing protocol sequence diagrams

Please add more answers even though I have accepted one. I am looking for a tool to draw a sequence of packets sent for a sliding window protocol. There are many tools for drawing message sequence charts with horizontal lines, but I want to be able to draw the lines diagonally, like the the bottom part of this image: Please suggest s...

In Objective-C, am I allowed to override a method in a subclass that the parent used to conform to a protocol?

Example is provided below. If I set id<RandomProtocol> delegate = [[B alloc] init]; Will doingSomething of class A or class B be called? A.h @protocol RandomProtocol -(NSString*)doingSomething; @end @interface A : NSObject <RandomProtocol> @end A.m #import "A.h" @implementation A - (NSString*) doingSomething { return @"...

Are there any protocols/standards on top of TCP optimized for high throughput and low latency?

Are there any protocols/standards that work over TCP that are optimized for high throughput and low latency? The only one I can think of is FAST. At the moment I have devised just a simple text-based protocol delimited by special characters. I'd like to adopt a protocol which is designed for fast transfer and supports perhaps compress...