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


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
    Posts
    7

    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,

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

  2. #2
    Join Date
    Sep 2005
    Posts
    7

    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, 11:56 AM
  2. Reading excel spreadsheet data into HTML file
    By kumar_naveen81 in forum VB Classic
    Replies: 0
    Last Post: 04-26-2005, 12:20 AM
  3. Reading Data from a Web page
    By Jawahar Rajan in forum Java
    Replies: 3
    Last Post: 06-15-2001, 12:33 PM
  4. Reading ASCII data files
    By Bill in forum VB Classic
    Replies: 0
    Last Post: 07-31-2000, 02:34 PM
  5. Complex Data Consumer Data Aware Classes
    By Desmond Cassidy in forum authorevents.kurata
    Replies: 3
    Last Post: 04-19-2000, 04: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
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

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