class TurboRex::MSRPC::RPCBase::RPC_SERVER_INTERFACE_Klass

Public Instance Methods

DispatchTable() click to toggle source
# File lib/turborex/msrpc/rpcbase.rb, line 577
def DispatchTable
  @dispatch_table_link_to || @value_table[:DispatchTable]
end
InterfaceId() click to toggle source
# File lib/turborex/msrpc/rpcbase.rb, line 569
def InterfaceId
  @interface_id_link_to || @value_table[:InterfaceId]
end
InterpreterInfo() click to toggle source
# File lib/turborex/msrpc/rpcbase.rb, line 581
def InterpreterInfo
  @interpreterInfo_link_to || @value_table[:InterpreterInfo]
end
TransferSyntax() click to toggle source
# File lib/turborex/msrpc/rpcbase.rb, line 573
def TransferSyntax
  @transfer_syntax_link_to || @value_table[:TransferSyntax]
end
dce?() click to toggle source
# File lib/turborex/msrpc/rpcbase.rb, line 546
def dce?
  DCE_TransferSyntax.to_s == @value_table[:TransferSyntax]
end
dispatch_table_nullptr?() click to toggle source
# File lib/turborex/msrpc/rpcbase.rb, line 550
def dispatch_table_nullptr?
  @value_table[:DispatchTable] == 0
end
interpreter_info_nullptr?() click to toggle source
# File lib/turborex/msrpc/rpcbase.rb, line 554
def interpreter_info_nullptr?
  @value_table[:InterpreterInfo] == 0
end
ndr64?() click to toggle source
# File lib/turborex/msrpc/rpcbase.rb, line 542
def ndr64?
  NDR64_TransferSyntax.to_s == @value_table[:TransferSyntax]
end
parse_struct(cstruct) click to toggle source
# File lib/turborex/msrpc/rpcbase.rb, line 520
def parse_struct(cstruct)
  @value_table = {
    Length: cstruct['length'].value,
    InterfaceId: cstruct['interfaceId'].to_s,
    TransferSyntax: cstruct['transferSyntax'].to_s,
    DispatchTable: cstruct['dispatchTable'].value,
    RpcProtseqEndpointCount: cstruct['rpcProtseqEndpointCount'].value,
    RpcProtseqEndpoint: cstruct['rpcProtseqEndpoint'].value,
    DefaultManagerEpv: cstruct['defaultManagerEpv'].value,
    InterpreterInfo: cstruct['interpreterInfo'].value,
    Flags: cstruct['flags'].value
  }

  @interface_id_link_to = nil 
  link_and_xref :interface_id_link_to, RPC_SYNTAX_IDENTIFIER_Klass.new(cstruct['interfaceId'])
  link_and_xref :transfer_syntax_link_to, RPC_SYNTAX_IDENTIFIER_Klass.new(cstruct['transferSyntax'])
  @interpreterInfo_link_to = nil
  @dispatch_table_link_to = nil

  true
end
server_routines() click to toggle source
# File lib/turborex/msrpc/rpcbase.rb, line 558
def server_routines
  unless interpreter_info_nullptr?
    begin
      routines = self.InterpreterInfo.server_routines
      return routines
    end
  end

  []
end