Add example that prints each packet from tcp client (#301)

This commit is contained in:
Roman
2018-04-10 13:08:55 -07:00
committed by Carl Lerche
parent dbcd8353b0
commit 5b677934fe
2 changed files with 152 additions and 0 deletions
+4
View File
@@ -19,6 +19,10 @@ A high level description of each example is:
connections and then echos back any contents that are read from each connected
client.
* [`print_each_packet`](print_each_packet.rs) - this server will create a TCP
listener, accept connections in a loop, and put down in the stdout everything
that's read off of each TCP connection.
* [`echo-udp`](echo-udp.rs) - again your standard "echo server", except for UDP
instead of TCP. This will echo back any packets received to the original
sender.