Sha256: f2f49ddbce606154a4c750c722b188405e140f27af14b4c7f57309584b5e6b8d
Contents?: true
Size: 1000 Bytes
Versions: 2
Compression:
Stored size: 1000 Bytes
Contents
# NOTE: Derived from blib/lib/Net/SSLeay.pm. # Changes made here will be lost when autosplit is run again. # See AutoSplit.pm. package Net::SSLeay; #line 2135 "blib/lib/Net/SSLeay.pm (autosplit into blib/lib/auto/Net/SSLeay/tcp_read_until.al)" sub tcp_read_until { my ($delim, $max_length) = @_; local $[; # guess the delim string if missing if ( ! defined $delim ) { if ( defined $/ && length $/ ) { $delim = $/ } else { $delim = "\n" } # Note: \n,$/ value depends on the platform } my $len_delim = length $delim; my ($n,$got); my $reply = ''; while (!defined $max_length || length $reply < $max_length) { $n = sysread(SSLCAT_S, $got, 1); # one by one warn "tcp_read_until: $!" if !defined $n; debug_read(\$reply, \$got) if $trace>1; last if !$n; # EOF $reply .= $got; last if $len_delim && substr($reply, blength($reply)-$len_delim) eq $delim; } return $reply; } # end of Net::SSLeay::tcp_read_until 1;
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
STLExtract-1.0.1 | Slic3r/Linux/lib/std/auto/Net/SSLeay/tcp_read_until.al |
STLExtract-1.0.0 | Slic3r/Linux/lib/std/auto/Net/SSLeay/tcp_read_until.al |