Hello all and about Win32::MemMap...

2010-11-01 Thread Aminer
Jan Dubois wrote about Win32::MemMap: >Interesting! >I had another look, and it turns out that the Delphi code is just a separate >DLL that doesnt know anything about Perl internals. >.It is not called directly from Perl, but via Win32-API. Therefore >Win32::MemMap does indeed seem to work on

Re: Checking for Available Port

2010-11-01 Thread Mark Dootson
Hi, I've used the following two subs successfully on Win32 but they were written to be cross platform and I think they should work. used as my $newport = get_next_free_local_port(9000); gets the next free port starting from 9000. sub local_port_is_free { my ($portnumber) = @_; my $

RE: Checking for Available Port

2010-11-01 Thread Edwards, Mark (CXO)
I thought of something like that but would rather implement it using some kind of Perl socket routine. I'll be using this on Windows and different flavors of Unix and the output format of netstat differs. -Original Message- From: perl-win32-users-boun...@listserv.activestate.com [mailt

RE: Checking for Available Port

2010-11-01 Thread Brian Raven
Edwards, Mark (CXO) <> wrote: > I'm writing a simple port listener script using > > $local=IO::Socket::INET->new(Proto=>"tcp", > LocalPort=>$port, > Listen=>1, > Reuse=>1,) or die "Can't open listening port: $!\n"; > > Everything works fine except I want to check to see if