the server should receive 1 and only 1 client and print "." to the shell once a second. the socket should listen on port 9999, close the connection, remove the socket, and exit on the TERM sig.
I have included some code as follows:
socket(SERVER,PF_INET,SOCK_DGRAM, 0) ;
my $sin = sockaddr_un(9999,INADDR_ANY);
bind (SERVER,$sin) || die $!;
this is where I am getting confused because I've read something similar to this
$socket= IO::Socket::INET->new(PeerAddr =>$remote_host,
Type =>SOCK_DGRAM) || die "Couldn't connect to $remote_host:$remote_port : $@\n";