summaryrefslogtreecommitdiff
path: root/ebus-racket/dumper.rkt
diff options
context:
space:
mode:
authorEbus-at-dockstar <ebus@dockstar>2014-09-17 00:03:59 +0200
committerEbus-at-dockstar <ebus@dockstar>2014-09-17 00:03:59 +0200
commit039c464876311588cfd9ad5eb86273eb22ba66e6 (patch)
tree903b97b60435152ebb6b4f75bc38bb581f799098 /ebus-racket/dumper.rkt
parenta5640da9257d4051e0da9f1727e5c4ab1a815053 (diff)
downloadebus-alt-039c464876311588cfd9ad5eb86273eb22ba66e6.tar.gz
ebus-alt-039c464876311588cfd9ad5eb86273eb22ba66e6.zip
ebus-raket: decoder for byte, dumper: output l2+l7
Diffstat (limited to 'ebus-racket/dumper.rkt')
-rwxr-xr-xebus-racket/dumper.rkt26
1 files changed, 10 insertions, 16 deletions
diff --git a/ebus-racket/dumper.rkt b/ebus-racket/dumper.rkt
index 95081d1..285261b 100755
--- a/ebus-racket/dumper.rkt
+++ b/ebus-racket/dumper.rkt
@@ -10,13 +10,10 @@
;(define verbose? (make-parameter #f))
(define connect-host? (make-parameter null))
(define connect-port? (make-parameter null))
-(define layer7? (make-parameter #f))
(define greeting
(command-line
#:once-each
- [("-a" "--layer7")
- "Parse Layer7" (layer7? #t)]
[("-c" "--connect")
host port
"Connect to server <host> <port>"
@@ -35,19 +32,16 @@
(define (read-ebus-loop2 input-port)
(let ([paket (layer2-read-ebus (current-input-port))])
(pretty-print paket)
+ (pretty-print (layer7-paket-parse paket))
(cond ((not (eof-object? paket)) (read-ebus-loop2 input-port)))))
-(define (read-ebus-loop7 input-port)
- (let ([fields (layer7-read-ebus (current-input-port))])
- (if (not (void? fields))
- (pretty-print fields)
- (display ""))
- (cond ((not (eof-object? fields)) (read-ebus-loop7 input-port)))))
+;(define (read-ebus-loop7 input-port)
+; (let ([fields (layer7-read-ebus (current-input-port))])
+; (if (not (void? fields))
+; (pretty-print fields)
+; (display ""))
+; (cond ((not (eof-object? fields)) (read-ebus-loop7 input-port)))))
-(if (layer7?)
- (let ()
- (display "Layer 7\n")
- (read-ebus-loop7 (current-input-port)))
- (let ()
- (display "Layer 2\n")
- (read-ebus-loop2 (current-input-port))))
+(let ()
+ (display "Layer 2\n")
+ (read-ebus-loop2 (current-input-port)))