Just open a single client server on the ports you don't what anyone to use....
You'll have to do it in a separate thread however and that could start to consume resources...else it will block waiting for an accept. Or, you could create server using the IO::Select method and wait for connects but I think that limits you to max of 255 open servers at once. Cheers, John > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:perl- > [EMAIL PROTECTED] On Behalf Of > [EMAIL PROTECTED] > Sent: Wednesday, December 08, 2004 3:12 PM > To: Perl-Win32 > Cc: [EMAIL PROTECTED] > Subject: Blocking ports > > Hi all, > > I have a network problem. > > how do i block a port(s) programmically in perl, making the port unusable > by > other software, requiring that port, while the perl script is running. > > my platform is windows, so the solution must be windows compatible. > > Thanks in advance for any help. > > -Jeremy A. > > _______________________________________________ > Perl-Win32-Users mailing list > [EMAIL PROTECTED] > To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs _______________________________________________ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs