[aprssig] How to pass UI-VIEW data to remote site using TCP/IP

Andrew Rich vk4tec at tech-software.net
Sat Nov 6 01:00:34 EST 2004


How to pass UI-VIEW data to a remote TCP/IP port 

1. On the remote pc running perl "simple_server.pl 14580"
2. On UI-VIEW point your aprs server setup to "remote_host port 14580"

#!/usr/bin/perl
use IO::Socket;
use IO::Socket::INET;
use Net::hostent;
open (outfile,">log.file");
$port_num = $ARGV[0];
my $port=shift || die "Usage server.pl <port>\n";
my $server = IO::Socket::INET->new( Proto => 'tcp',
LocalPort => $port,
Listen => SOMAXCONN,
Reuse => 1);
die "can't setup server" unless $server;
print "[Server $0 is running] on port $port_num \n";
while ($client = $server->accept())
{
$client->autoflush(1);
while ( <$client>)
{
print $_ ;
}
}
close $client;
                 






More information about the aprssig mailing list