Adding a stream that send a TCP packet to the echo server and monitors the n_sends and n_recvs

This commit is contained in:
Taha Afzal committed 2024-01-25 13:37:41 -05:00
1 parent 2bceda01ae
commit 287ee291cc
2 files changed
+82 -1

No files matched your search

+3 -1
View File
@@ -21,7 +21,9 @@ namespace BCG {
if (run_echo_tcp_server_only) {
Console.WriteLine("Running as TCP Echo server, Hit enter to continue");
Console.ReadLine();
SimpleTCPServer sts = new SimpleTCPServer(12345);
var port = 12345;
Console.WriteLine($"ready to listen to port: {port}");
SimpleTCPServer sts = new SimpleTCPServer(port);
sts.init();
Task.Delay(1000000000).Wait();
}