CS3700-project2/router

20 lines
342 B
Plaintext
Raw Normal View History

2020-01-29 21:23:07 +00:00
#!/usr/bin/env racket
#lang racket
(require "iputil.rkt")
;; Str [Listof Peer] ->
;; Router main
(define (run-router asn peers)
(displayln asn)
(map displayln peers)
(void))
(module+ main
(command-line
#:program "router"
#:args
(asn . peers)
;; Run the router
(run-router asn (map string->peer peers))))