|
I’m working on with an embedded device that is connected to PC using rs232 (rs232 over USB).
I’m thinking about developing my own protocol:
<MAGIC><LENGTH><BINARY DATA><CRC>
but I don’t want to reinvent the wheel.
Please note that...
Started by Piotr Czapla on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Of packets in a stream of binary data"? If so, maybe specify a minimum gap between packets.
|
|
What is the best way to copy the contents of one stream to another? Is there a standard utility method for this?
Started by Anton on
, 8 posts
by 8 people.
Answer Snippets (Read the full thread at stackoverflow):
Take note however CopyStream(Stream input, ....
If you can
There is actually, a less heavy-handed way of doing a stream copy.
Be a way to do this more efficiently, depending on what kind of stream you're working with.
|
|
What is The Easiest, fastest Way to capture video stream from camera with C#?
Started by Ole Jak on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
I looked this up for you:
http://www.codeproject.com/KB/directx/directxcapture.aspx :)
Simpliest and easiest... .
Hi Ole,
As Papuccino1 wrote, you should look for a library that does just what you need .
Probably look for a library that does everything for you .
|
Ask your Facebook Friends
|
What is the easiest way (without opening a shell to curl and reading from stdin) in Perl to stream from another HTTP resource? I'm assuming here that the HTTP resource I'm reading from is a potentially infinite stream (or just really, really long)
Started by altCognito on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
It must be a function_stream); $http->http11_mode(1); $http->request('http://www.example.com/'); sub process_http_stream { my ($self, $phase....
If used, is a way to filter the data as it is received or to handle large transfers.
|
|
Hello,
What would be the best way to deal with large streaming media content in Intranet. We have a 50 MB file that is to be loaded to our Intranet site. Currently we have just pointed it to a file location instead of using a Data Streaming Server. This...
Started by Magic on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at serverfault):
We didn't bother to buy a license for it, as it will happily stream 10 concurrent users you can use the RMTP protocol virtually any flash based player will be able to stream the content.
Or FMS).
|
|
I'm a bit confused about how to overload the stream operators for my class in C++, since it seems they are functions on the stream classes, not on my class. What's the normal way to do this? At the moment, for the "get from" operator, I have a definition...
Started by ghallio on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
I, int j) { x = i; y = j; } friend ostream &operator<<(ostream &stream, MyClass ob); friend istream &operator>>(istream &stream, MyClass &ob); }; ostream &operator<<(ostream &stream, MyClass ob) { stream ....
|
|
Hello,
What is a good way to call 'uname -a' from a C++ program and send the results to a stream?
I looked at system() and exec(), but they do not seem to give access to the stdout of the call.
Thanks.
-William
Started by WilliamKF on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Why not just retrieve.
Another option (if you are using Qt) is to use QProcess .
For a possible way.
|
|
I am looking for everyone's opinion on what is the best way to stream video from a website built with ASP.NET. Some notable items include:
The ability to stream .avi, .mpg, and possibly .wmv files The ability for someone to upload a video directly to ...
Started by Mikey on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Silverlight - implementation and consumption of it favors .NET developers, but, while it's slowly picking up steam, it... .
Some obvious options come to my mind:
Flash - it's a popular industry-wide standard, but isn't native to Microsoft's .NET Framework .
|
|
Hello dear Stackoverflow community!
Let's get straight to my question: I have a socket and all input coming via this socket / stream is parsed by my SAX parser. Now, upon a certain parsing event I'd like to close the socket / stream from within my SAX...
Started by codethief on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Alternatively, why not record the fact that....
That way the SAX.
You're giving the SAX parser a resource (a stream) to read a check to see whether you're still interested in these events before processing.
I don't think you can easily do this.
|
|
What ist most concise way to read the contents of a file or input stream in Java? Do I always have to create a buffer, read (at most) line by line and so on or is there a more concise way? I wish I could do just
String content = new File("test.txt").readFully...
Started by cretzel on
, 9 posts
by 9 people.
Answer Snippets (Read the full thread at stackoverflow):
The usual way is to have a fixed size buffer or to use path) throws IOException { FileInputStream stream = new FileInputStream(new File(path)); try.
The file isn't a gigabyte log or XML file...
|