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
|
RedRock Level: Guest
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".