Is count of un acknowldged bytes maitained anywhere in kernel data structures for TCP socket ?

Discussion in 'Linux Networking' started by Rohit, May 14, 2007.

  1. Rohit

    Rohit Guest

    Hi all
    What i am trying to do is : get data that is lying in the TCP
    send buffer.
    I need the count first and then the actual data. I dont know if this
    count is already calculatated and stored somewhere ?? For data i
    *think* , i need to traverse the sk_write_queue list for all the
    sk_buff structs and pick up if there is any data in it . Currently my
    code traveses this list twice . Once for count and once for data. want
    to optimize that.

    Rohit, May 14, 2007
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.