https://github.com/igrishaev/pcap-parse
Haskell assessment
https://github.com/igrishaev/pcap-parse
Last synced: 5 months ago
JSON representation
Haskell assessment
- Host: GitHub
- URL: https://github.com/igrishaev/pcap-parse
- Owner: igrishaev
- Created: 2016-10-07T11:24:07.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-10-07T20:28:08.000Z (over 9 years ago)
- Last Synced: 2025-01-05T20:42:31.112Z (about 1 year ago)
- Language: Haskell
- Homepage:
- Size: 324 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This program parses trading data placed in special PCAP files. It is written in
Haskell and depends only on `binary` semi-standard package.
The program uses lazy byte strings to not load entire file in memory. Passing a
wrong PCAP file (without such UDP packets) returns an empty result.
Installation steps:
1. Clone this repo.
2. Install Haskell libraries with `make cabal`.
3. Compile a program: `make compile`.
4. Download sample PCAP file: `make download`.
5. Run the program: `make run` to see the result.
To change the order of lines, pass `-r` flag or run `make run-r`.
See the output in `output.txt` and `output-r.txt` files. Use them as unit tests
(changing code should not create diffs on that files).