This class implements the output interface against a socket.
Public Class Methods
new(sock)click to toggle source
# File lib/rex/ui/text/output/socket.rb, line 14definitialize(sock)
@sock = socksuper()
end
Public Instance Methods
print_raw(msg = '')click to toggle source
Prints the supplied message to the socket.
# File lib/rex/ui/text/output/socket.rb, line 32defprint_raw(msg = '')
@sock.write(msg)
@sock.flushmsgend
supports_color?()click to toggle source
# File lib/rex/ui/text/output/socket.rb, line 19defsupports_color?caseconfig[:color]
whentrue# Allow color if the user forces it onreturntrueelsefalseendend