Hello,
how to assign object of interface to a protocol's object?
i've a protocolA and protocolB. all the methods of both the protocols is implemented in MyClass.How to restrict the access to only protocolA's methid and protocolB's methods ?Coding is done in Objective-C for iPhone application.
...
When i'm trying to call protocolA methods, on an object of protocolB, i'm getting compiler warnings", but how would i restrict it to only methods of protocolB, i mean it shouldn't allow me to run the code, it has to give me an error ??? Is there any method to solve this problem in Objective-C?
Example :
// this is protocolA.h
@protoco...
hello, I need a simple, lightweight authentication and data transfer mechanism (on .NET platform). I have looked a WCF and SOAP etc. they all seem too top-heavy and complicated for my needs. I need something simple and straight-forward leading me to a chat protocol like Jabber. My data-transfer is mostly small - example: user searches fo...
I am reading about the Bittorrent protocol and couldn't find this mentioned on the Wiki page. I could understand the role of trackers and publishers but from a practical perspective, I tried contacting a tracker to give me some information and it gave me the following:
7%00%00%04%82%91%F3%CA%D5%92%08%C8%7C%B0%AE%1E4%2B%E4C:0:1
Now, th...
Hey guys,
I have been looking for hours and didn't find anything so I decided to give up and ask for your precious knowledge ;)
In order to make my code cleaner, I would like to implement the delegate methods of NSXMLParser in another file ... but I couldn't find any tutorials ...
Could someone explain me briefly how to do that ?
Ch...
Hi,
I have a program where inheritance of protocols are there say:
@protocol A
-(void)methodA
@end
The protocol which inherits:
@protocol B<A>
-(void)methodB
@end
The class which implements @protocolA method is
@interface classB<B>
@end
@implementation classB
-(void)methodA
{
//somecode
}
@end
Now i wanted the methodA to be...
My experience is in Java development with Eclipse, where if I add a protocol in a header file there is a shortcut to add the required methods of that protocol in the implementation file. Does Xcode have a similar shortcut?
For example: In my .h, I define a class to conform to the UIPickerViewDelegate and UIPickerViewDataSource protocols...
Currently I'm creating a server application to receive protocol-specific messages. I need to create tests to ensure that I've implemented the protocol correctly. Is this some kind of integration testing? If positive, can I make an integration testing with unit testing tools? And finally, what is the best way to create these kind of tests...
I am not very clear about the idea of wire-level protocols. I heard BitTorrent uses it and read that a wirelevel protocol can be considered an opposite of API. I read RMI calls can be considered wirelevel protocols but am still a little confused. Can someone explain this in a better way?
...
Can anybody recommend some resources that discuss the common patterns found in communication protocol design and programming?
For protocol design patterns, I'm thinking of things like how delimiters are used to mark the start/end of messages, using escaping so that a delimiter can appear within the message data, the pros/cons of variou...
From what I understand of AMQP, "clients" of the message bus can use any format they wish i.e. the fabric is opaque to the client messages.
Is it a common practice to include an overhead specifying the protocol format of the messages for a given "exchange"? e.g. have a "\n" terminated first line specifying the protocol MIME-type (XML, ...
I've checked the tcpdump man page and thought I understood the example provided there. But the one that I am getting is something I'm not able to understand completely.
ORIGINAL: Simulator Output
LINE 1: 20:01:13.442111 IP 10.0.0.1.12345 > 10.0.0.2.54321: S 1234:1234(0) win 65535
LINE 2: 20:01:13.471705 IP 10.0.0.2.54321 > 10.0.0.1.123...
I want to use this for an object factory: Given a string, create a Class, and if
this Class supports a protocol (with a Create() method) then alloc the class and call
Create.
...
In Java, I can't take a byte array of unsigned bytes (from something such as Wire Shark) and put this into java.... Because I will get compile errors since anything greater than 127 decimal/0x07F is treated not as a byte, but as an int.... IE:
byte[] protocol = { 0x04, 0x01, 0x00, 0x50, /*error*/0xc1, /*error*/0xdb, 0x1c, /*erro...
I am trying to understand the rationale behind such a design. I skimmed through a few RFCs but did not find anything obvious.
...
Hi,
I understand that IPX and SPX both provide connection services similar to TCP/IP. Here, IPX is similar to IP and SPX is similar to TCP and hence eager to know about this.
How does the performance of IPX/SPX exceed that of TCP in LAN ?
Why is IPX/SPX not used in LAN alone if its performance is superior to that of TCP in the case of L...
Hello,
I've built a client-server system, where clients sign in to communicate securely with other clients through the server.
Here are the properties of my system:
-Client-server communication is SSL encrypted
-Client login details are stored as hashes securely with their salt on a database stored locally on the server
-On login, ...
Hi All,
I am confused about the @protocol----@end in iphone, what actually is it meant for. Why we are using this. Is it a functionality to provide additional methods to a class..? i am not sure.
Please help me.
Thanks,
Shibin
...
hi,
I am wondering what the differences are between binary and text based protocols.
I read that binary protocols are more compacts/faster to process.
How does that work out? Since you have to send the same amount of data? No?
E.g how would the string "hello" differ in size in binary format?
thanks
...
Hello.
I'm working on a proxy server for X11, that will also do some slight data manipulation(color depth, watermarking and some more) on certain data. I've got the connection up and running, and I'm manipulating the server ip in the connection on 177/UDP so the client connects correctly through the proxy instead of calling the server in...