borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (how to use udp to sent a picture to the remote computer?) New Topic New Poll Post Reply
AndreaVB Forum : Network : Winsock Control
Poster Message
Claudio
Level: Guest


icon Winsock Control  Archived to Disk

I'm trying to made up a program able to filter infos sended between server and client.Obviously i know the IP and port of server and the Port the client connect to.
I'm trying to make the filter connect to the server only when receive a connection from the client and the filter use the accept method only on the _Connect event from the server, but i receive on the accept method (ConnectionRequest from client, i save the requestID in a variable to use after in the _Connect event from server) an error saying that the saved requestID of the client is "not a socket descriptor". How can i bypass this? (Plz don't tell me to use the api to made up all te stuff :-)

09-06-2002 at 07:36 PM
| Quote Reply
RedRock
Level: Guest

icon Re: Winsock Control  Archived to Disk

Not totally sure what you mean here, but a lot of times I see the sequence go something like this:
-Client tries to connect

-Server accespts connection with a new socket

-Server passes that socket object to some other object (like a filter) to handle the messaging

I guess basically the server is just sitting around accepting connections then passing the new sockets off to something with a little more "brains".

Maybe that helps; I dunno.

30-07-2002 at 01:43 PM
| Quote Reply
AndreaVB Forum : Network : Winsock Control
Previous Topic (how to use udp to sent a picture to the remote computer?) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder