DaytimeService.NET is an implementation of the daytime protocol (RFC867) for C#.
It provides a console application for running the daytime server through the CLI and a test tool for triggering the daytime server. It is developed against .NET Standard 2.0.
Before you begin, ensure you have met the following requirements:
- You have installed the latest version of
Microsoft Visual Studio
orJetbrains Rider
. - You have installed the latest version of
.NET Core SDK
.
To build DaytimeService.NET, follow these steps:
- Clone this repository.
- Open the
DaytimeService.NET.sln
inMicrosoft Visual Studio
orJetbrains Rider
. - Build it with
Microsoft Visual Studio
,Jetbrains Rider
or withdotnet build
.
For starting the server, follow these steps:
- Build the project with the before mentioned steps.
- Open PowerShell, CMD or terminal.
- Navigate to
pathToProject\DaytimeService.NET\DaytimeService.NET.CLI\bin\Debug\netcoreapp3.1
with
cd pathToProject\DaytimeService.NET\DaytimeService.NET.CLI\bin\Debug\netcoreapp3.1
- Run it with
.\DaytimeService.NET.CLI.exe -c <connection-mode> -s <listening-port>
You can get additional help with the help
-command. Use it as follows:
.\DaytimeService.NET.TestClient.exe --help
For starting the test client, follow these steps:
- Build the project with the before mentioned steps.
- Open PowerShell, CMD or terminal.
- Navigate to
pathToProject\DaytimeService.NET\DaytimeService.NET.TestClient\bin\Debug\netcoreapp3.1
with
cd pathToProject\DaytimeService.NET\DaytimeService.NET.TestClient\bin\Debug\netcoreapp3.1
- Run it with
.\DaytimeService.NET.TestClient.exe -c <connection-mode> -d <port-of-daytime-server> -s <source-port-of-test-client>
You can get additional help with the help
-command. Use it as follows:
.\DaytimeService.NET.TestClient.exe --help
To contribute to DaytimeService.NET, follow these steps:
- Fork this repository.
- Create a branch:
git checkout -b <branch_name>
. - Make your changes and commit them:
git commit -m '<commit_message>'
- Push to the original branch:
git push origin <project_name>/<location>
- Create the pull request.
Alternatively see the GitHub documentation on creating a pull request.
- NET.Core 3.1 for demo test client and demo server
- CommandLineParser 2.8.0
- Library is compatible to .NET Standard 2.0.
Thanks to the following people who have contributed to this project:
If you want to contact me you can reach me at [email protected].
This project uses the following license: MIT.