how can i open a port and leave open

rudy
12-09-2000, 05:20 PM
Hello please help me Thank You alot of smiles
subject in how can i open a port and leave open

i used winsock to scan and open a port but it closes it and open the next one, see i put the winsock coce in a timer
it has to close the port to avoid a error when opening the next port. the code is also listening to see if any thing is happening at that current port that was just open by the winsock scan, now can i open a port and leave it open
and continue to open the next with out generating an error.
lets say
open 100
open 101
open 118
an so on with out closing the port,
later when i want to close any one of these ports i open
i need to no how to close the same ports i just open
lets say i dont want to close all the ports i open
just one,
close port 118
how can i do this or point me to an expert, to me any one that answer my email i considor expert lol.
thank you
hope i was clear :-)
bye and thank you again

adebuigny
12-11-2000, 08:26 AM
I don't think you can open multiple ports with one winsock control. Someone correct me if I am wrong.

If you have a static number of ports you need to open, you can create that many winsock controls. If its dynamic, you will probably have to dig into the winsock api calls.

Goto www.allapi.net for more information on the winsock api.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum