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.
NuGet | Unity Packages on OpenUPM | |
---|---|---|
TCPeasy | ||
TCPeasy.Cli |
Automated Unity Package Releases: https://github.com/sschmid/com.sschmid.tcpeasy
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
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