Sha256: db44676e23bab226b9433b74bc7805c42e804f50c2a23fd4f85c36cc7da8f685

Contents?: true

Size: 684 Bytes

Versions: 54

Compression:

Stored size: 684 Bytes

Contents

# Trisul Remote Protocol TRP Demo script
require 'rubygems'
require './helper'
include TrisulRP::Protocol
include TrisulRP::Keys

class TestTrisulrp < Test::Unit::TestCase

  def test_grep

	
    conn=TrisulRP::Protocol.connect("127.0.0.1", 12001,"Demo_Client.crt","Demo_Client.key")
	
	avail_tm  = TrisulRP::Protocol.get_available_time(conn)

    req = TrisulRP::Protocol.mk_request(TRP::Message::Command::GREP_REQUEST,
										:time_interval => mk_time_interval(avail_tm),
										:maxitems => 4,
										:pattern => "HELO footballbat2.usma.bluenet")


    TrisulRP::Protocol.get_response(conn,req) do |resp|

		print_session_details(conn,resp.sessions)

    end

  end
end

Version data entries

54 entries across 54 versions & 1 rubygems

Version Path
trisulrp-1.5.8 test/test_grep.rb
trisulrp-1.5.7 test/test_grep.rb
trisulrp-1.5.6 test/test_grep.rb
trisulrp-1.5.5 test/test_grep.rb
trisulrp-1.5.4 test/test_grep.rb
trisulrp-1.5.0 test/test_grep.rb
trisulrp-1.4.6 test/test_grep.rb
trisulrp-1.4.5 test/test_grep.rb
trisulrp-1.4.4 test/test_grep.rb
trisulrp-1.4.3 test/test_grep.rb
trisulrp-1.4.2 test/test_grep.rb
trisulrp-1.2.11 test/test_grep.rb
trisulrp-1.2.10 test/test_grep.rb
trisulrp-1.2.9 test/test_grep.rb