The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
1answer
68 views

Three-Phase Commit (3PC) question

I've been reading about 3PC in a text book, but there aren't any diagrams or examples, so I found one on wikipedia that I posted below. My question is, what does it mean by "cohorts?" There is no ...
1
vote
0answers
72 views

Three phase commit protocol

I'm trying to understand the three phase commit protocol by reading the wiki page (http://en.wikipedia.org/wiki/Three-phase_commit_protocol#Motivation). In the description for the diagram I posted ...
0
votes
1answer
72 views

Can I “just” create my own media type for a proprietary web/application communication

I read this question but it doesn't fully answer mine. In the linked question, the OP asks what he must do to have his custom media type registered. I do not need that. All I'm asking is, that if I ...
-3
votes
1answer
66 views

CAN Protocol Understanding [closed]

I have a task to convert CAN protocol Driver from Basic CAN to Full CAN. The project contains CANopen stack used in it. I have initiated the study of CANopen stack. I want to know is it necessary to ...
1
vote
2answers
95 views

CANopen and CAN Driver

CAN Driver means application program that interacts with CAN hardware and helps in initializing setup and communication. CANopen Stack provides various APIs to deal with CAN communication. Now this ...
1
vote
1answer
210 views

Is it safe to generate client nonces using random number generator?

I am making HTTP calls on the client side and the server expects me to supply a client nonce. It needs to be 4 bytes long. I am planning to use this combination: base64(parts of the MAC address + ...
0
votes
2answers
122 views

Is byte stuffing required when using a packet field length

I'm involved in a project which involves implementing a binary protocol that will be transmitted over TCP. During our early discussions we have hit a brief snag on deciding whether byte stuffing is ...
0
votes
0answers
49 views

Use Objective-C protocols like Java interfaces [duplicate]

I'm a Java developer moving to Objective-C. So far in Objective-C I've seen protocols used extensively to implement the delegate pattern, but I haven't seen then to add a layer of abstraction in the ...
0
votes
1answer
181 views

Is TCP message order still guaranteed when using async IO

Here the scenario I'm imagining. Two messages are transferred, both will require 2 packets each (I know you don't deal with packets directly with TCP, but on the IP level each message will consist of ...
1
vote
1answer
167 views

Is masking really necessary when sending from Websocket client

The current Websocket RFC requires that websocket clients mask all data within frames when sending (but server is not required to). The reason the protocol was designed this way is to prevent frame ...
4
votes
1answer
641 views

Greek philosophers, stone tablets and dumb slaves problem [closed]

This is one of the questions that I came across while preparing for a programming interview. Design a system for Greek philosophers to exchange messages using stone tablets carried by dumb ...
0
votes
0answers
357 views

Fixed Sized Buffer or Variable Buffers with C# Sockets

I am busy designing a TCP Server class in C# that has events and allows the user of the class to define packets that the server can send a receive by registering a class that is derived from my ...
0
votes
1answer
137 views

AS2 vs AS3 communication protocol difference. Server requirement

I'm researching what's needed for EDI as far as protocols and server/application setup. This is transportation industry and I'm interested in X12 format for transactions like 204, 210, 214. Specific ...
3
votes
3answers
680 views

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 ...
1
vote
1answer
131 views

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. However, this become difficult where the fields used by different ...
2
votes
2answers
2k views

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. I tried it in a ...
0
votes
1answer
814 views

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. According to this link http://datatracker.ietf.org/doc/rfc6455/?include_text=1 ...
1
vote
1answer
174 views

Seeking advice on design of application protocol

UPDATE 1 as requested by Brendan. We are developing a Unix batch application for storing millions of customer records into a relational database. In order to allow multiple batch jobs to run in ...
3
votes
1answer
5k views

Non Blocking Sockets vs Blocking sockets - UDP - C&linux

When to use blocking sockets over non blocking sockets on UDP? Question 1:What's is recommended for the following scenario ? Multiple clients send data over multiple UDP sockets, i.e. say client1 ...
1
vote
6answers
1k views

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 ...
0
votes
1answer
1k views

CCtalk is it still a modern protocol or is it outdated?

I need to write some code to integrate a machine with a coin acceptor. This coin acceptor (euro's dollars etc), has several connection methods. The manufacturer wrote a C++ dll and a C# invoke ...
0
votes
1answer
82 views

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. The ...
16
votes
2answers
1k views

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 ...
2
votes
2answers
569 views

Messaging technologies between applications ?

Recently, I had to create a program to send messages between two winforms executable. I used a tool with simple built-in functionalities to prevent having to figure out all the ins and outs of this ...
2
votes
1answer
334 views

Is there an specific way or algorithm to decode protocols?

I am designing a simple logic analyzer, I know that the best way to decode a protocol like I2C, SPI, UART is whit something like an FPGA but I want to do it by software by now :) I am running on an ...
3
votes
6answers
443 views

Why Is it better to use unreadable bytes for client server communication?

I'm composing communication lyrics for client-server and what am I thinking about: "authme username passord" (maybe encrytped) "accept" "get archive of H2O from 03.02.2005 to 20.12.2064" ...
2
votes
2answers
956 views

Is TCP/IP an OSI Replacement or both are inter-dependent and meant to work together

I'm confused in differentiating the OSI Model and TCP/IP suite. As per my knowledge. OSI is a structure on top of which Networks are built and TCP/IP is the suite of protocols that operate on these 7 ...
2
votes
2answers
1k views

Is it possible to integrate UDP file transfer into a .NET web application?

Background I have recently been tasked with designing a rebuild of an existing .NET web application that currently uses a third-party company to handle large file transfers (as big as 50Gb). ...
2
votes
1answer
231 views

Book on network cryptographic protocols [closed]

I am looking for a book that describes in fair detail the most common network cryptographic protocols such as SSL, TLS, SSH, HTTPS, etc. I already have some books that cover the underlying ...
2
votes
1answer
711 views

Designing a plugin-based architecture - what is a protocol service supposed to provide to a plugin?

I'm starting a hobby project and I'm in the middle of designing its architecture. I would like to make my program plugin-based (never done anything like that before), to make it extensible. Now I'm ...
5
votes
1answer
237 views

audio and video data in RTP

Suppose a user wants to transmit both audio and video to another user, whose formats are AMR for audio and H.264 for video. Does the user have to transmit audio and video packets always separately? ...
3
votes
2answers
505 views

Primary reasons for using REST/OData instead of a custom convention

What do you think would be the primary reasons to make APIs with REST or OData instead of just making everything custom (for example only using GET requests, even for setting variables). Reasons for ...
1
vote
3answers
1k views

UDP segments that are lost

i know that UDP does not care about segment (packet) order and their arrival on the destination. then how on earth are we able to stream videos? if a segment is lost (doesn't reach the destination), ...
5
votes
5answers
379 views

When designing a protocol, is it better for a method to accept a single object of a specific type, or an array?

I'm currently designing a protocol for internal use, so it doesn't make a huge difference in this particular case, but it got me wondering: Is it better for a method to accept a single object of a ...
0
votes
2answers
404 views

Serverless protocol [closed]

Ok programmers, here's one for you. I'm writing an open source IM client/protocol as a learning exercise and to scratch my itch about some problems with current protocols. However, I'm poor. I do ...
13
votes
7answers
1k views

Why isn't SSL/TLS built into modern Operating Systems?

A lot of the basic network protocols that make up the infrastructure of the Internet are built in to most major Operating Systems. For example, TCP, UDP, and DNS are all built into Linux, UNIX and ...