Find the answer to your Linux question:
Results 1 to 2 of 2
An acquisition device configured as a TCP/IP server on eth0 transfers continuously data through a socket to the receive client. Before TCP/IP transmission, all sampled data are buffered in a ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jan 2013
    Posts
    2

    Overall tcp tx buffer size on eth0.


    An acquisition device configured as a TCP/IP server on eth0 transfers continuously data through a socket to the receive client.
    Before TCP/IP transmission, all sampled data are buffered in a circular queue on the server, so that should the eth0 link be abruply removed, any pending sampled data can be transmitted to the client when the eth0 link is restored.

    I need to asses - with a C method -how many bytes surely were not received by the client, when the eth0 disconnection occurs.

    I believe the pending bytes number depends on the actual TCP/IP socket buffer size, plus any byte pending on the eth0 adapter driver/hw.

    A lightly excess estimate can be acceptable, but not too much...

    Thank you for your attention.

  2. #2
    Just Joined!
    Join Date
    Aug 2012
    Posts
    15
    You only need deal with the sampled data. The TCP/IP and MAC header will be regenerated when the data is sent again.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •