]> Kevux Git Server - kevux-tools/commit
Progress: Further work in TacocaT, getting the "receive" working and writing to a...
authorKevin Day <thekevinday@gmail.com>
Tue, 5 Sep 2023 02:25:56 +0000 (21:25 -0500)
committerKevin Day <thekevinday@gmail.com>
Tue, 5 Sep 2023 02:25:56 +0000 (21:25 -0500)
commite8ff49ad6aa7843077c69dccfa19e263388c6ddd
tree6fc2ce2699f24bf021fa33a1ba96fd6c18c2ebce
parent3633aff2cb2ec91766593db8ddee2b115a1952e1
Progress: Further work in TacocaT, getting the "receive" working and writing to a file.

This gets the receive mostly working.
There may be a few fixme or todo comments to address.
I decided to not bother with some of the more complex handling of problems to get this program out the door.

To test this, I used the FLL-0.6 branch version of the file specifications/fss-000f.txt.
I then created the Packet header using the bash script like this:
  printf '\x00\x00\x00\x15\x78' > test.binary
  cat 0.6/specifications/fss-000f.txt >> test.binary

The resulting binary file size is 0x1578 bytes (5496 bytes) and this can be confirmed via the wc command:
  wc test.binary

I can then start the TacocaT program in a new terminal like this:
  tacocat -r 127.0.0.1:12345 test.out +V

In a different terminal, I use netcat to test (because the "send" support is not yet written).
  cat test.binary | netcat 127.0.0.1 12345

Use control-c to terminate TacocaT.

I can then confirm that the file has been created successfully via a md5sum check.
  md5sum test.out 0.6/specifications/fss-000f.txt

The checksums should match, and in my testing they do match.
12 files changed:
sources/c/tacocat/main/common.c
sources/c/tacocat/main/common/define.h
sources/c/tacocat/main/common/enumeration.h
sources/c/tacocat/main/common/print.c
sources/c/tacocat/main/common/print.h
sources/c/tacocat/main/common/type.c
sources/c/tacocat/main/common/type.h
sources/c/tacocat/main/print/error.c
sources/c/tacocat/main/print/error.h
sources/c/tacocat/main/process.c
sources/c/tacocat/main/receive.c
sources/c/tacocat/main/receive.h