This is a simple program that will listen on a specified TCP port and echo back the message to the sender.
The program takes a single argument which is the port number. This should be a valid port number in the range 1-65535. Example: EchoServer 50000
dotnet build /work/lnx-net-server/EchoServer.sln /property:GenerateFullPaths=true /consoleloggerparameters:NoSummary -c Release
dotnet /work/lnx-net-server/bin/Release/net8.0/EchoServer.dll 50000
dotnet publish -c Release -r linux-x64 --self-contained true
or
dotnet publish -c Release -r linux-x64 -p:PublishAot=true
This is a test client app for server, written in python. Sends and receives sample message.
python testclient.py
snap install dotnet-sdk --classic
snap install code --classic
ln -s /snap/dotnet-sdk/current/dotnet /usr/local/bin/dotnet
cd /lnx-net-server
code .
After IDE start install suggested plugins.