Solved

Layered Service Provider for Windows(LSP)

Posted on 2004-08-19
3
312 Views
Last Modified: 2013-12-19
Hi,

I am creating a Layered Service Provider for windows to check outgoing packets.

When I am in the WSPSend function I look through the data and if it meets a certain condition,
I am interested in connecting the socket up to my listening server on Windows, so that instead of the packet
being sent out to the website, it goes to my server.

Do you by chance know how to reconnect the socket without causing errors in the programs that
made the connection, to the listening server I created. <-- want to reconnect the socket within the WSPSend function of my lsp dll, so the packet can be sent to my server instead.

 I tried connect, but throws a -1 error.

Thanks,
Matt
0
Comment
Question by:JaffaLink
3 Comments
 
LVL 37

Accepted Solution

by:
Bing CISM / CISSP earned 125 total points
Comment Utility
"If no error occurs and the send operation has completed immediately, WSPSend returns zero. Note that in this case the completion routine, if specified, will have already been queued. Otherwise, a value of SOCKET_ERROR is returned, and a specific error code is available in lpErrno. The error code WSA_IO_PENDING indicates that the overlapped operation has been successfully initiated and that completion will be indicated at a later time. Any other error code indicates that no overlapped operation was initiated and no completion indication will occur."

http://msdn.microsoft.com/library/en-us/winsock/winsock/wspsend_2.asp

so, which error code's value is -1, could you please clarify? thanks, bbao
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Enterprise networks where VoIP phones have been deployed frequently use port configurations that allow both a computer and an IP phone to be plugged into the same switch port but use different VLANs. On Cisco equipment I'm referring to the "native V…
Resolve DNS query failed errors for Exchange
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now