mosh has asked for the wisdom of the Perl Monks concerning the following question:
I have a perl code that uses Net::TFTPd.
The problem is that I want the TFTP server to listen to internal application that runs under Win2K OS, because of that I cannot use IO::socket since it's going through the Win sockets.
Doed anyone have an idea how to make the Net::TFTPd server listen to the internal application instead of listening to the PC NICs ?
The relevant code form the Net::TFTPd module, that uses the IO::Socket is:
Thanks,# open socket if(my $udpserver = IO::Socket::INET->new(%params)) { $udpserver->setsockopt(SOL_SOCKET, SO_RCVBUF, 0); $udpserver->setsockopt(SOL_SOCKET, SO_SNDBUF, 0); $self->{'_UDPSERVER_'} = $udpserver; return(1); } else { $LASTERROR = "Error opening socket for reply: $@\n"; return(undef); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Can't use IO::Socket, need an alternative.
by starbolin (Hermit) on Mar 02, 2005 at 18:29 UTC |