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,...
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)
...
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...
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...
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.
...
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 ?
...
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...
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?
...
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?
...
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 ...
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...
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...
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...
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?
...
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?
...
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...
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...
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...
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 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...