No description
  • Pony 97.8%
  • Makefile 2.2%
Find a file
2021-01-20 14:30:41 +01:00
client Initial commit 2021-01-20 14:30:41 +01:00
server Initial commit 2021-01-20 14:30:41 +01:00
.gitignore Initial commit 2021-01-20 14:30:41 +01:00
makefile Initial commit 2021-01-20 14:30:41 +01:00
README.md Initial commit 2021-01-20 14:30:41 +01:00

To test this, first compile the server and client as such:

$ make

To run the server:

$ ./build/server <ip> <port>

To run the client:

$ ./build/client <server-ip> <server-port> <packets_to_send>

Ideally, test this on non-loopback interfaces. Under the new change, the server should receive exactly <packets_to_send> packets from the client, and all should decode successfully and print "Received buffer of size 1000".

On the old implementation, the server will receive more than <packets_to_send> packets, and will probably error while decoding, or print "Received buffer of size 0".