Has Little Endian won?
When teaching recently about the Big vs. Little Endian battle, a student asked whether it had been settled, and I realized I didn’t know. Looking at the Wikipedia article, it seems that the most popular current OS/architecture pairs use Little Endian but that Internet Protocol specifies Big Endian for transferring numeric values in packet headers. Would that be a good summary of the current status? Do current network cards or CPUs provide hardware support for switching byte order?
Handle invalid text on server or fix on client in Client-Server application
I have developed a protocol for a Client-Server application and developed it in conjunction with another developer. The client application at this moment is written for the mobile phone.
UDP order of packets with direct connection
If i have two systems (A and B) running on LAN(INTRANET) which are directly connected. There are no routers in the middle. In this case, if system A sends a few UDP packets every few milliseconds to system B:
Non Blocking Sockets vs Blocking sockets – UDP – C&linux
When to use blocking sockets over non blocking sockets on UDP?
Seeking advice on design of application protocol
UPDATE 1 as requested by Brendan.
Base64 decode and SH1 decryption of Sec-WebSocket-Accept value example from Websocket RFC
I am planning to implement the Websocket protocol and currently learning how handshake headers must be structured.
Programming against a protocol in Objective-C
I stumbled accross the SOLID principles. There is one burning question. Should I always use protocols? I never saw someone using them in the way that a Java developer would use them.
Dividing a packet protocol into layers
I work on embedded systems, so frequently, I am required to implement protocols. When I do this I like to make nice clean layers.
Why use protocol, not call the method directly?
I was asked this question in an interview. For eg: UITableviewDelegate
protocol has CellForRowAtIndexpath
. Why make it a delegate method in a protocol
not a method in the UITableView
class and call it directly?
“Generifying” a request-oriented protocol
A colleague of mine is working on some software which involves a client process (possibly more than one, although not lots) and a server process. They typically communicate on the same machine but in principle could be communicating over the network. Now, typical communication is something like: