CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: Winsock LSP

  1. #1
    Join Date
    Jun 2005
    Posts
    2

    Winsock LSP

    Hi,

    Inherited problem in that a programmer has left for better pastures overseas and that without trace - no source code found just a working prototype that actually needs very little modification.

    The application connects to our website and downloads information to the PC's SCREEN. Need however for this information to also be written to a file.

    Did some research on internet and found that a layered service provider to the winsock 2 could be written to "copy" this stream to storage without any modification to the stream.

    However, have found that 'WSPDuplicateSocket' merely duplicates the information structure and not the socket - any subsequent socket creation and connection is refused.

    Somebody please put me in the right direction so as to 'pipe' and 'tee' this Winsock 2 data stream to a file and to the screen without affecting the current stream configuration.

    Thanks,
    Ken.

  2. #2
    Join Date
    May 2000
    Location
    KY, USA
    Posts
    18,652

    Re: Winsock LSP

    [ Redirected thread ]

  3. #3
    Join Date
    Aug 2001
    Location
    Stockholm, Sweden
    Posts
    1,664

    Re: Winsock LSP

    I think there is a good sample laying somewhere on microsoft's FTP site... It is called layered.zip. It is a working C++ framework for LSPs... should be easy to add file-dump functionallity, if you don't modify the steam (which you say you won't). There is a good article about this source as well in MSDN (search for LSP)--which describes the LSP model with comments about the layered.zip source code.

    Hope it helps.

  4. #4
    Join Date
    Mar 2002
    Posts
    18

    Re: Winsock LSP

    I have a problem: Get ProcessID of a PORT on Win98. (on win2k, xp, I've got solution by using NTDDK, but on win98 )

    do LSP does this work well?
    or have other method?

    I've research LSP in MSDN, layered.zip... install LSP sample, but i don't know how to do my problem.

    Could u help me?
    Thanks!
    Last edited by lad; June 18th, 2005 at 11:24 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
  •  





Click Here to Expand Forum to Full Width

Featured