> Here's some sample code:

Hmm... doesn't work for me. Here's what I've got so far (you'll recognize  
some more of it, I guess :-)):

sub connectServer {
        my $client = shift;

        # don't disconnect unless we're still in this mode.
        return unless ($client->modeParam('serverswitcher.connect'));

        my $host = pack('N',1);  # 1 is squeezenetwork
        
        use Net::IP;
        my $ip = Net::IP->new('192.168.x.y');
        $host = pack 'N', $ip->intip;
        $client->sendFrame('serv', \$host);

        # if message recieved, client has disconnected
        Slim::Control::Request::executeRequest(
                $client,
                ['client', 'forget']);
}

But well... nothing happens. Even with d_slimproto turned on I see nothing.

-- 

Michael

-----------------------------------------------------------------
http://www.herger.net/SlimCD - your SlimServer on a CD
http://www.herger.net/slim - AlbumReview, Biography, MusicInfoSCR
_______________________________________________
discuss mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/discuss

Reply via email to