in reply to Re^2: send: Cannot determine peer address at ./toritv.pl line 183
in thread send: Cannot determine peer address at ./toritv.pl line 183
sub send { @_ >= 2 && @_ <= 4 or croak 'usage: $sock->send(BUF, [FLAGS, [TO]] +)'; my $sock = $_[0]; my $flags = $_[2] || 0; my $peer = $_[3] || $sock->peername; croak 'send: Cannot determine peer address' unless($peer);
So you have to take care that either peername is initialized on object creation, or provided the peer address as a third argument to send().
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: send: Cannot determine peer address at ./toritv.pl line 183
by targetsmart (Curate) on Jan 03, 2009 at 06:35 UTC |