Re: reading network data



* Ender:

(1) Do you know that you are looking in the right place or might that
be in question too? It helps a lot if you are sure of all the
encapsulating header formats -- including the inner-most one where the
data is actually being represented.

No, I'm looking in the right place, right machine, right port. I'm using wireshark to try to confirm it. It shows the packet's src, dest, port, etc... info. But even in wireshark, I see the same info that's in my receive buffer. So that tells me it's looking in the right place as well.


(2) What kind of number is being sent? You say coordinates, but of
what? It helps to know what the data is when trying to see how it is
being represented.

And I know what the data should look like. It's just some colon delimited floats, one after another, 3 floats long. e.g. "2.032:6.33:9.21"


The data is not encrypted.

(4) How sure of that are you? One way to test is to take a chunk of
it and try to compress it with an general-purpose data compressor like
gzip. Of course, there is no need to do that if you can see
patterns.

Positive, it's not encrypted.

So here's my question, if I send unencrypted numbers across the wire, that's exactly what I should see in my read() buffer on the other side, correct?


Why don't you post some code, of the program that generates the packets.

--
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
.



Relevant Pages

  • Re: Highly responsive serial port
    ... My problem consists of reading from a serial COM port as fluent as possible. ... If my reader only reads the input buffer after 50ms I'm too late to reply but I don't know it. ... Would a driver(in kernel mode) have enough priority to process such requests in time? ... a general rule of thumb in thread synchronization is to stay away from depending on "sleep" and loop designs in a vain attempt to synchronize I/O. ...
    (microsoft.public.win32.programmer.kernel)
  • Serial Communication in C# Express
    ... ago and I really appreciated Nicholas Paldino's help, ... > I can only achieve to transmit '34', ... After the usual port initialization, ... // Obtain the number of bytes waiting in the port's buffer ...
    (microsoft.public.dotnet.languages.csharp)
  • [PATCH] cpm_uart: Fix dpram allocation and non-console uarts
    ... Makes non-console UART work on both 8xx and 82xx ... static unsigned int cpm_uart_tx_empty(struct uart_port *port) ... /* Write back buffer pointer */ ... * Allocate DP-Ram and memory buffers. ...
    (Linux-Kernel)
  • Re: Serial COM port communication problems
    ... serial port. ... The receiving buffer is read by setting the mask to rx flag being the ... sub-packages arrive in succession and some sub-packages are lost. ... But this should not cause a loss of data, assuming you are reading the actual number of characters retured by WaitCommEvent. ...
    (microsoft.public.win32.programmer.kernel)
  • Re: Serial Communications - Lost Event
    ... "Completion of write" is a moment when all data from the app buffer is ... The driver can keep the data in its internal buffer ... > serial port monitoring and test applications. ... > of a serial port means when all of the data has been transfered. ...
    (microsoft.public.win32.programmer.kernel)