Sha256: 710029f14dc943fbfd7c0fa8ef350719f2c8fb998ac490038c45da24d71d5e96

Contents?: true

Size: 748 Bytes

Versions: 6

Compression:

Stored size: 748 Bytes

Contents

# -*- coding: binary -*-

# https://en.wikipedia.org/wiki/Printer_Job_Language
# See external links for PJL spec

module Rex::Proto::PJL

  require "rex/proto/pjl/client"

  DEFAULT_PORT = 9100
  DEFAULT_TIMEOUT = 5

  COUNT_MAX = 2_147_483_647
  SIZE_MAX = 2_147_483_647

  UEL = "\e%-12345X" # Universal Exit Language
  PREFIX = "@PJL"

  module Info
    ID = "#{PREFIX} INFO ID"
    STATUS = "#{PREFIX} INFO STATUS"
    VARIABLES = "#{PREFIX} INFO VARIABLES"
    FILESYS = "#{PREFIX} INFO FILESYS"
  end

  RDYMSG = "#{PREFIX} RDYMSG"

  FSINIT = "#{PREFIX} FSINIT"
  FSQUERY = "#{PREFIX} FSQUERY"
  FSDIRLIST = "#{PREFIX} FSDIRLIST"
  FSUPLOAD = "#{PREFIX} FSUPLOAD"
  FSDOWNLOAD = "#{PREFIX} FSDOWNLOAD"
  FSDELETE = "#{PREFIX} FSDELETE"

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rex-2.0.13 lib/rex/proto/pjl.rb
rex-2.0.12 lib/rex/proto/pjl.rb
rex-2.0.11 lib/rex/proto/pjl.rb
rex-2.0.10 lib/rex/proto/pjl.rb
rex-2.0.9 lib/rex/proto/pjl.rb
rex-2.0.8 lib/rex/proto/pjl.rb