Expand description
Test suite for sbd client compliance.
The command supplied to the run function must:
- Print on stdout:
CMD/READY
when it is ready to receive commands. - Listen on stdin for:
CMD/CONNECT/id/<addr-list>
where id is a numeric identifier, addr-list is a slash separated list of addresses (ip:port) e.g.CMD/CONNECT/42/127.0.0.1:44556/[::1]:44557
.CMD/SEND/id/<pubkey>/<msg-hex>
where msg-hex is hex encoded bytes to be sent to the hex encoded pubkey.CMD/CLOSE/id/<pubkey>
close the connection and print a response close
- Write to stdout:
CMD/CONNECT/<pubkey>
where pubkey is a hex encoded pubkey of the client that was connected.CMD/RECV/id/<pubkey>/<msg-hex>
where msg-hex is hex encoded bytes received from the remote hex encoded pubkey peer.CMD/CLOSE/id/<pubkey>
if the connection closes (including when the listen close command was called).
Structs§
- Results of the test suite run.
Functions§
- Run the test suite.