apps/dtnquery/dtnquery_pseudo
changeset 64 1296a0283271
parent 63 9a8be24c5037
child 65 333724f2f7cf
--- a/apps/dtnquery/dtnquery_pseudo	Tue Oct 18 11:52:07 2011 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,66 +0,0 @@
-DTNQUERY
-
-- inputs
-    - src eid (req)
-    - dest eid (req)
-    - resp path (req)
-    - query type
-    - query
-    - matching rule
-    - mode
-    - receive time
-    - bundle expiry time
-    - help
-    - verbose
-
-- outputs
-    - 0: success
-    - 1: error
-
---------------------------------------------------------------------------------
-
-- main
-    - parse cmd line args
-        - validate cmd line args
-            - if invalid, print usage & exit
-
-    - create registration
-        - validate response
-    - open handle
-        - validate response
-    - switch mode
-        - send
-            - do_send
-        - receive
-            - do_recv
-        - both
-            - do_send
-            - do_recv
-
-    - end switch
-    - close handle
-        - validate response
-- end main
-
---------------------------------------------------------------------------------
-
-- do_send
-    - create & initialize bundle_spec, empty payload, bundle_id, bpq_ext
-    - parse src / dest eids
-        - assert valid
-    - dtn_send()
-        - assert response
-- end do_send
-
---------------------------------------------------------------------------------
-
-- do_recv
-    - create & initialize bundle_spec 
-    - dtn_recv()
-        - assert response
-    - handle file transfer
-        - build file name
-            - if exists append .01, .02, ...
-    - notify user that file was received
-- end do_recv
-