12002-07-16 Jay Rogers <jay@rgrs.com> 2 3 * Version 3.03 released. 4 5 * Telnet.pm (getlines): Changed behavior so it works like 6 IO::Handle::getlines(). Instead of returning just the lines 7 currently available for reading, it now returns all lines until 8 end-of-file. To get the old behavior, use "All => ''" named 9 parameter. 10 11 * Telnet.pm (put): New method put() is like print(), except that 12 it doesn't write the trailing output_record_separator ("\n"). It 13 also takes named parameters. 14 15 * Telnet.pm (last_prompt): New method last_prompt() provides the 16 last prompt matched by cmd() or login(). 17 18 * Telnet.pm (rs): New method rs() is synonymous with 19 input_record_separator(). 20 21 * Telnet.pm (ors): New method ors() is synonymous with 22 output_record_separator. 23 24 * Telnet.pm (ofs): New method ofs() is synonymous with 25 output_field_separator(). 26 27 * Telnet.pm (input_log, output_log, option_log): Fixed so they 28 always return the filehandle of the logfile or "" if logging 29 turned-off. 30 31 * Telnet.pm (dump_log, input_log, option_log, output_log): Fixed 32 so they work with an unblessed or tied filehandle. 33 34 * Telnet.pm (cmd_remove_mode, errmode, input_record_separator) 35 (max_buffer_length, option_callback, port, prompt, timeout): These 36 attribute methods now ignore an invalid argument and print a 37 warning to stderr. This also applies to a named parameter used to 38 override one of these attributes. 39 40 * Telnet.pm (cmd): Added named parameters to override Errmode, and 41 Input_record_separator. 42 43 * Telnet.pm (get, waitfor): Added named parameters to override 44 Binmode, Errmode, and Telnetmode. 45 46 * Telnet.pm (getline, getlines): Added named parameters to 47 override Binmode, Errmode, Input_record_separator, and Telnetmode. 48 49 * Telnet.pm (login, open): Added named parameter to override 50 Errmode. 51 52 * Telnet.pm (login): Added two 0.01 second delays to workaround 53 bug in Linux login program. 54 55 * Telnet.pm (break): Fixed to properly send TELNET break command. 56 57 * Telnet.pm (open): Fixed to properly handle an absolute timeout 58 value. 59 60 * Telnet.pm: Squelched the warning "isn't numeric" caused by 61 deficiency in ActiveState perl and MS-Windows. 62 63 * t/select.t: Fixed test #3 so it passes when running on Linux 2.4 64 or greater. 65 662000-05-27 Jay Rogers <jay@rgrs.com> 67 68 * Version 3.02 released. 69 70 * Telnet.pm: Squelched the warning "Ambiguous call resolved as 71 CORE::open()" introduced by perl5.005 72 73 * Telnet.pm: Fixed incorrect handling of CR LF when chars are sent 74 in separate blocks. 75 76 * Telnet.pm: Modified log routines to accept a tied filehandle. 77 78 * Telnet.pm (get): Fixed to correctly set timed_out() to indicate 79 no time-out error when data is not immediately available but 80 subsequently arrives and is read before the time-out interval 81 expires. 82 83 * Telnet.pm (get): Fixed timeout error when timeout=0, and no 84 data read, but there's still data in the buffer yet to be 85 returned. 86 87 * Telnet.pm (get): Errmode action now happens when timeout=0 and 88 time-out occurs. 89 901997-12-27 Jay Rogers <jay@rgrs.com> 91 92 * Version 3.01 released. 93 94 * Telnet.pm (binmode): calling binmode() without an argument no 95 longer sets binmode to 1, but rather just returns the current 96 value for binmode. 97 98 * Telnet.pm (telnetmode): calling telnetmode() without an argument 99 no longer sets telnetmode to 1, but rather just returns the 100 current value for telnetmode. 101 102 * Telnet.pm (cmd): Removes the first line of output when the 103 remote side told us it would echo or the user requests its removal 104 explicitly with cmd_remove_mode() 105 106 * Telnet.pm (cmd_remove_mode): New method that contains the mode 107 for how to deal with an echoed back command in the output returned 108 by cmd(). Default is set to "auto", which means cmd() removes the 109 first line of output when the remote side told us it would echo. 110 111 * Telnet.pm (new): By default, an offer to echo made by the remote 112 side of a TELNET connection is always accepted. 113 114 * Telnet.pm (new): Fixed default prompt to work with prompts 115 containing $ 116 117 * Telnet.pm (fhopen): Changed to work with any open filehandle 118 including uni-directional pipes like STDIN. 119 120 * Telnet.pm (host): When passed a null string or undef for a 121 hostname it no longer changes it to "localhost". 122 123 * Telnet.pm (waitfor): Now performs error mode action when eof is 124 encountered before the pattern match. 125 126 * Telnet.pm (waitfor): Changed text of error messages when 127 timing-out. 128 129 * Telnet.pm (login): Changed text of error messages when 130 timing-out. 131 132 * Telnet.pm: Fixed non-portable use of \r\n to the more portable 133 \015\012. 134 135 * Telnet.pm (break): Fixed to no longer send the 136 output_record_separator. 137 138 * Telnet.pm: Stopped erroneously converting input character 139 sequences which look like TELNET escaped carriage-returns 140 (\015\000), when not in telnetmode. 141 142 * Telnet.pm (buffer): New method that returns scalar reference to 143 object's input buffer. 144 145 * Telnet.pm (buffer_empty): New method that discards all data in 146 object's input buffer. 147 148 * Telnet.pm (option_accept): New method used to indicate our 149 willingness to accept a telnet option offered by the remote side. 150 151 * Telnet.pm (option_callback): New method used to receive 152 notification of telnet option negotiation. 153 154 * Telnet.pm (option_log): New method that is used to log option 155 negotiation. 156 157 * Telnet.pm (option_state): New method that returns the current 158 state of a telnet option. 159