Lines Matching refs:opts
215 my %opts;
216 $opts{Listen} = 10;
217 $opts{Proto} = "tcp";
218 $opts{ReuseAddr} = 1;
220 $opts{LocalAddr} = $1;
223 $opts{LocalPort} = $listen_port;
227 $opts{Domain} = AF_INET6;
228 $listen_sock = IO::Socket::INET6->new(%opts);
230 $listen_sock = IO::Socket::INET->new(%opts);
233 $opts{Domain} = AF_UNSPEC;
234 $listen_sock = IO::Socket::INET6->new(%opts);
308 my %opts;
309 $opts{PeerAddr} = $host;
310 $opts{PeerPort} = $port;
311 $opts{Proto} = "tcp";
313 $sock = IO::Socket::INET->new(%opts);
315 $opts{Domain} = AF_INET6;
316 $sock = IO::Socket::INET6->new(%opts);
320 $opts{Domain} = AF_UNSPEC;
321 $sock = IO::Socket::INET6->new(%opts);