Hi,

it's the first time that I've used POE (based on its chat-server) to realize a 
Socket-based program that sends from a 'studio' to all listening clients the 
same data (lines).

That works so far,
but now I'd like the server to know which ip-addr are allowed to conntect and 
which are to reject.

Please give me a hint how can I get th IP-Addr. of the connecting client in 
this function (of the chat-server):

sub client_connected {
    my $session_id = $_[SESSION]->ID;
    $users{$session_id} = 1;
    broadcast( \%studio, $session_id, "1 Client connected." );
}

Thanks,
Carl

Reply via email to