|
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 .
|
|
Hello,
Every time I restart my computer and about once an hour Malwarebytes detects a Trojan trying to transmit something. Prior to this, I had winrscmde.exe "stop responding" continuously until I ran Avira AV and Malwarebytes, now its intermittent. Any...
Started by Llyr on
, 15 posts
by 2 people.
Answer Snippets (Read the full thread at techguy):
Hiya Llyr,
Delete any versions of Combofix that you may have on your Desktop, download a fresh copy from either of the following links :-
Link 1
Link 2
Ensure that Combofix is saved directly to the Desktop <--- Very important
Disable all security programs... .
|
|
Wireless Flash transmitting devices - what's best?
As the title indicates, I'm looking to buy a wireless flash transmitting setup - needs to activate four flashes in a studio any advice or pointers? Been using cables up until now
and here's a little ...
Started by Shoedoos on
, 6 posts
by 4 people.
Answer Snippets (Read the full thread at yellowbullet):
Re: Wireless Flash transmitting devices://www.youtube.com/watch?v=lVvtXsXV8ZY
any....
Re: Wireless Flash transmitting devices - what's best?
I use Alien Bee Strobes, Pocket Wizard TT1 above factory flash sync and get almost full power flash.
|
|
I've got a VX-7r that is only transmitting hit/miss while using a mic (MH-57). Using the PTT button on the side of the radio, it transmits fine every time. I figured I probably had a short int he mic cable somewhere so got a new mic, but the new one isn...
Started by sactrack on
, 7 posts
by 4 people.
Answer Snippets (Read the full thread at radioreference):
Mike The mic....
That could be your problem or not.
Typical multilevel 3.5mm plugs without the screw threads do not have the reach to make all contacts .
As a previous owner of a VX6 I know that the speaker/mic jack requires it to be screwed completely in .
|