open my $fh, ">&=$fn:bytes" or warn $! and die; #open socket to client