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-3.2.43 test/test_grep.rb
trisulrp-3.2.42 test/test_grep.rb
trisulrp-3.2.41 test/test_grep.rb
trisulrp-3.2.40 test/test_grep.rb
trisulrp-3.2.39 test/test_grep.rb
trisulrp-3.2.38 test/test_grep.rb
trisulrp-3.2.37 test/test_grep.rb
trisulrp-3.2.36 test/test_grep.rb
trisulrp-3.2.35 test/test_grep.rb
trisulrp-3.2.34 test/test_grep.rb
trisulrp-3.2.32 test/test_grep.rb
trisulrp-3.2.31 test/test_grep.rb
trisulrp-3.2.27 test/test_grep.rb
trisulrp-3.2.26 test/test_grep.rb
trisulrp-3.2.16 test/test_grep.rb
trisulrp-3.2.15 test/test_grep.rb
trisulrp-3.2.14 test/test_grep.rb
trisulrp-3.2.13 test/test_grep.rb
trisulrp-3.2.9 test/test_grep.rb
trisulrp-3.2.8 test/test_grep.rb