An open API service indexing awesome lists of open source software.

https://github.com/jabedude/c-zerg-protocol


https://github.com/jabedude/c-zerg-protocol

Last synced: 3 months ago
JSON representation

Awesome Lists containing this project

README

        

Codec

- [x] Flourish: man(1) page for decode(1) and encode(1).
- [x] Flourish: GPS output prints Degrees - Minutes - Seconds (DMS)
- [x] Flourish: IP Checksum calculation
- [x] Flourish: UDP Checksum calculation
- [x] Flourish: Make debug generates stack usage files

# Building
```
$ make
```
# Cleaning
```
$ make clean
```
# Build Debug
```
$ make debug
```

# Layout
```
.
├── bin/ Final binaries
├── docs/ Man pages
├── lib/ Libraries
├── obj/ Object files
├── pcaps/ Sample PCAPs
```
# Usage

## Decoder:
```
$ ./bin/decode hello.pcap
*** Packet 1 ***
Version : 1
Sequence : 81
From : 7890
To : 1234
Message : Hello World!
```
## Encoder:
```
$ cat > example.txt << EOF
>*** Packet 1 ***
>Version : 1
>Sequence : 81
>From : 7890
>To : 1234
>Message : Hello World!
>EOF

$ ./bin/encode example.txt hello.pcap
```