https://github.com/viazure/tcpserversample
This is a TCP service for learning basic TCP communication. It includes a server, Serilog logging, and configuration reading.
https://github.com/viazure/tcpserversample
Last synced: 4 months ago
JSON representation
This is a TCP service for learning basic TCP communication. It includes a server, Serilog logging, and configuration reading.
- Host: GitHub
- URL: https://github.com/viazure/tcpserversample
- Owner: viazure
- Created: 2024-02-05T03:12:32.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-02-25T07:42:12.000Z (over 1 year ago)
- Last Synced: 2024-02-25T08:34:14.694Z (over 1 year ago)
- Language: C#
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TCPServerSample
This project is a learning exercise to implement a simple TCP service using .NET 8. The main goal of the project is to understand the basics of TCP communication within the .NET ecosystem.
## Features
- **TCP Server**: A basic TCP server that listens for client connections and handles incoming data.
- **Logging**: Utilizes Serilog for detailed and structured logging.
- **Configuration**: Reads the service startup port and the encoding format for received messages from a configuration file.## Getting Started
To get started with this project, clone the repository and open it in your preferred .NET IDE (such as Visual Studio).
```bash
git clone https://github.com/viazure/TcpServerSample.git
```Make sure you have .NET 8 installed on your machine. You can download it from the [official .NET website](https://dotnet.microsoft.com/en-us/download/dotnet/8.0).
Once the project is open, you can run the service by executing:
```bash
dotnet run
```## Dependencies
- [.NET 8](https://dotnet.microsoft.com/en-us/download/dotnet/8.0): The framework used for building the service.
- [Serilog](https://serilog.net/): A logging library providing simple, structured logging.