DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: reading another application's data (coming thru a port) at OS level (socket prog)..

  1. #1
    Join Date
    Sep 2005

    Question reading another application's data (coming thru a port) at OS level (socket prog)..

    Hello all..

    I am pradeep and my friend is doing a project.. we are stuck up here:

    My friend's software is going to do a port scan, and determine when XYZ application opens a port. When a port opens, our software also connects to that port and copies all incoming data into a file.

    Question is, is this possible directly with the BSD or Winsock API?

    We have thought of other approaches, such as using libcap to copy packets from the network card. But thats a great deal of job to be done.

    We have also seen a program: tcpflow which creates files for incoming data on all ports.

    However, we would like to have a solution by which we can directly copy data from a port at programming level.

    Kindly tell us if this is possible at all.

    Maybe I should tell you why we need this: our software is going to be a APPLICATION INDEPENDENT DOWNLOAD RESUMER. This means that, it is going to add download resume support for any software which downloads or updates from the internet (different softwares use different port numbers).

    Another thought was to firewall ports. When some application connects out of a port, we will send and receive for it and thus achieve the desired result.

    Hmm hope it makes some sense

    Thanks for ur time! Awaiting your comments/answers

    With best regards,

    Last edited by deeps_chennai; 09-28-2005 at 12:52 PM. Reason: changed the title

  2. #2
    Join Date
    Sep 2005

    Thumbs up the solution..

    Hello all..

    just for any1 who has had the same problem, here is our solution:

    we write our application as a proxy server. since all networking applications (MUST) support proxies, we take advantage of this.

    However, it means we are protocol-dependent. We have coded only for HTTP protocol.

    So this download-resumer supports only applications that update from the internet using HTTP.

    however, it stays APPLICATION independent.. which was our actual design goal.

    we have sucessfully tested with Panda antivirus 2005.. which dosent provide in-built download-resume support.

    fine then, c ya ppl!

Similar Threads

  1. Reading Index Data?
    By mp_direct in forum VB Classic
    Replies: 3
    Last Post: 05-26-2005, 10:56 AM
  2. Reading excel spreadsheet data into HTML file
    By kumar_naveen81 in forum VB Classic
    Replies: 0
    Last Post: 04-25-2005, 11:20 PM
  3. Reading Data from a Web page
    By Jawahar Rajan in forum Java
    Replies: 3
    Last Post: 06-15-2001, 11:33 AM
  4. Reading ASCII data files
    By Bill in forum VB Classic
    Replies: 0
    Last Post: 07-31-2000, 01:34 PM
  5. Complex Data Consumer Data Aware Classes
    By Desmond Cassidy in forum authorevents.kurata
    Replies: 3
    Last Post: 04-19-2000, 03:54 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center