putline(line)
private
Ensures that line has a control return / line feed (CRLF) and
writes it to the socket.
Show source
def putline(line)
if @debug_mode
print "put: ", sanitize(line), "\n"
end
if /[\r\n]/ =~ line
raise ArgumentError, "A line must not contain CR or LF"
end
line = line + CRLF
@sock.write(line)
end