in reply to Socket Client to Module

Don't pass the return value from getpeername to your MainCall method, but the Client socket filehandle:
AdminFunctions::MainCall(*Client);

getpeername returns a packed socket address, not a socket handle.

--shmem

_($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                              /\_¯/(q    /
----------------------------  \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}

Replies are listed 'Best First'.
Re^2: Socket Client to Module
by Streen (Sexton) on Dec 04, 2006 at 18:18 UTC
    Doh, this seems logical.
    And in the MainCall Method itself, do I get the Client the same way it is now?