|
Hi,
I'd like some advice on which format to use for transmitting data over TCP. Currently, I have devised a simple text-protocol with delimited strings. I'm thinking I should use something out there that already exists such as XML, JSON, or XMPP?
What...
Started by Nosrama on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
For varying length strings, I'd probably just implement....
It is only when you have more complicated needs that you have to do anything more fancy than that .
In most cases folks just declare a record with a layout that is reproducable on both ends and use that .
|
|
A valid JSON Syntax is something of the kind:
{ "username" : "admin", "password" : "123" }
But what if I want to transmit an array of 'users' ( given the example ), instead of a single 'user' ?
Is the code below Valid JSON, according to the specifications...
Started by Andreas Grech on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
What....
It’s extremely simple to understand, IMHO.
The not-very-well-known page json.org has a diagram that shows the syntax .
Edit : Here is a good link on JSON and its usage .
Yes, your example is valid JSON - that is exactly how you want to use an array .
|
|
I am writing a small Java server, and a matching client in C++, which implement a simple IM service over the STOMP protocol .
The protocol specifies that every frame (message that passes between server and client, if you will) must end with a null character...
Started by Yuval A on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
Of course, the problem Wireshark (or something....
Are you transmitting a buffer or a string? If you transmit a string specify how many bytes you want to transmit and include the null character.
Is on the sending or the receiving end.
|
Ask your Facebook Friends
|
A teacher is writing on a blackboard and we want to pass all the information on the blackboard over a low-bandwidth network in real-time. How do we do it?
In one interview, I faced this question.
Started by SIVA on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
To do it, if you have that sort of blackboard, is to transmit a pair of x,y coordinates of the points.
|
|
My project has a netTCP WCF service. This is the app.config for it:
<?xml version="1.0" encoding="utf-8"?> <configuration> <system.serviceModel> <bindings> <netTcpBinding> <binding name="NetTcpBinding_IIndexer" closeTimeout...
Started by Matt on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
It depends upon the sort of data that you're sending, but if you're using serialization to create the data, then serializing to XML and compressing that with a GZipStream can result in fewer bytes than compressing the data generated by a binary serialization... .
|
|
I've always provided a value="something" for my option elements within a select element.
Like so
<select> <option value="true">True</option> </select>
Now that I have made one with countries, there is a lot of extraneous data in...
Started by alex on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
If this attribute is not set, the initial value is set to the contents of the OPTION... .
As the specification says:
OPTION Attribute definitions value = cdata [CS]
This attribute specifies the initial value of the control .
Yes, this will work in all browsers.
|
|
I'm looking for a forward error-correcting code that is relatively easy/fast to encode on a microcontroller; decode will be done on a PC so it can be more complicated.
I don't know that much about error-correcting codes and except for the simple Hamming...
Started by Jason S on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Thus, my recommendation would be instead to divide your data streams up into blocks (1 KB, ... .
The problem with error correcting codes is that they'll let you recover from single bit or maybe 2 bit errors, but usually not detect or patch up major damage .
|
|
Is it possible to transmit multiple video sources simultaneously? not a camera switcher, but actually stream multiple channels on the same tx?
Started by mlwartman on
, 12 posts
by 6 people.
Answer Snippets (Read the full thread at rcgroups):
In theory, it should be possible to use interlacing to transmit two video system on each buggy, adding weight ....
But that's alot of modding...
Each buggy would transmit on 5.8g to be received by the uav following the race from say 100...
|
|
There seems to be a problem with the radio transmitter inside the Dorian Hall building in Dorian in Treefeather island.
There is inside the building both a long range transmitter and a radio receiver set in frequency 100.
If you are in the building you...
Started by Fingersmith on
, 12 posts
by 6 people.
Answer Snippets (Read the full thread at cantr):
In short, your transmission isn't reaching a repeater, as it relies on the strength of the transmitter not the repeater, but the repeater is reaching... .
You need to build a better transmitter.
I had a town like that and it's to do with distance (in pixels) .
|
|
Http://www.electricalpollution.com/smartmeters.html
Started by gunner45acp on
, 20 posts
by 13 people.
Answer Snippets (Read the full thread at sigforum):
These have been ....
IMHO this is nothing more than to get people spun up about nothing .
SPY1 especially.
RADAR systems the military uses will fry a digital watch if you walk in front of it .
Sounds like they need to put their tin foil on a little thicker .
|