https://github.com/sschmid/tcpeasy
🔌 Connecting sockets
https://github.com/sschmid/tcpeasy
dotnet tcp tcp-client tcp-server tcp-socket unity
Last synced: 3 months ago
JSON representation
🔌 Connecting sockets
- Host: GitHub
- URL: https://github.com/sschmid/tcpeasy
- Owner: sschmid
- License: mit
- Created: 2022-09-27T14:48:56.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-05-17T21:01:01.000Z (about 3 years ago)
- Last Synced: 2025-03-07T21:44:11.570Z (over 1 year ago)
- Topics: dotnet, tcp, tcp-client, tcp-server, tcp-socket, unity
- Language: C#
- Homepage:
- Size: 700 KB
- Stars: 6
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# 🔌 TCPeasy - Connecting sockets
`TCPeasy` provides you with a TCP server socket and a TCP client socket to
jump-start your TCP projects. It comes with a TCP message parser that extracts
messages from your TCP data stream.
`TCPeasy.Cli` is a dotnet console application that can run in server mode or
client mode and is using the TCP message parser to allow you to send UTF8
messages from a server to multiple clients or from a client to a server.
[](https://github.com/sschmid/TCPeasy/actions/workflows/ci.yml)
[](https://coveralls.io/github/sschmid/TCPeasy)
[](https://www.nuget.org/packages?q=TCPeasy)
[](https://github.com/sschmid/TCPeasy/blob/main/LICENSE.md)
[][twitter-sschmid]
# Install
| | NuGet | Unity Packages on [OpenUPM](https://openupm.com) |
|:------------|:---------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| TCPeasy | [](https://www.nuget.org/packages/TCPeasy) | [](https://openupm.com/packages/com.sschmid.tcpeasy) |
| TCPeasy.Cli | [](https://www.nuget.org/packages/TCPeasy.Cli) | |
Automated Unity Package Releases: https://github.com/sschmid/com.sschmid.tcpeasy
# Quick Start
Check out the `TCPeasy.Cli` project which contains the `ListenCommand` and
the `ConnectCommand` which starts the console app in either server or client mode.
### See [TCPeasy.Cli](https://github.com/sschmid/TCPeasy/tree/main/src/TCPeasy.Cli)
# Demo
Run `TCPeasy.Cli` and give it a try!
Start the server by listening on a port, e.g. `12345`
```
dotnet run --project src/TCPeasy.Cli/TCPeasy.Cli.csproj listen 12345
```
Connect clients to an IP address on a specific port, e.g. `localhost` on port `12345`
```
dotnet run --project src/TCPeasy.Cli/TCPeasy.Cli.csproj connect localhost 12345
```

Use the `-v` option for verbose output
```
dotnet run --project src/TCPeasy.Cli/TCPeasy.Cli.csproj -- listen -v 12345
```
```
dotnet run --project src/TCPeasy.Cli/TCPeasy.Cli.csproj -- connect -v localhost 12345
```
# Maintainer(s)
[@sschmid on GitHub][github-sschmid] - [@s_schmid on Twitter][twitter-sschmid]
[github-sschmid]: https://github.com/sschmid "@sschmid"
[twitter-sschmid]: https://twitter.com/intent/follow?original_referer=https%3A%2F%2Fgithub.com%2Fsschmid%2FTCPeasy&screen_name=s_schmid&tw_p=followbutton "s_schmid on Twitter"