Csharp .NET Core socket... on CLI

Benyamin Limanto ecb73fd2fb fix(unix): on normal exit handler register 6 months ago
.vscode 182bc882b2 debug: add process name 6 months ago
.gitignore c2f7cfb09f First commit : simple server vanilla 11 months ago
ChatService.cs 45221a0c94 fix(chat): double key dict msg id 7 months ago
IPHelper.cs 38dd76744a fix(helper): Remove DHCP interface windows 7 months ago
Program.cs ecb73fd2fb fix(unix): on normal exit handler register 6 months ago
README.md 3a5cc82a08 readme: open firewall port 7 months ago
SocketUnixListener.cs 6d4ef0a760 feat(unix): History chat 6 months ago
socket-csharp.csproj c2f7cfb09f First commit : simple server vanilla 11 months ago

README.md

Socket C# Programming Example

This is a very-very experimental Simple Chat protocol, using UDP, in single network

This is CLI based app (will be ported to AvaloniaUI), used as demonstration on Computer Network Course in SIB ISTTS Surabaya.

For implemented Chat server, only UDP Chat Service is for now. As there are no TCP implementation other than skeleton mode.

Preq/requirement

  1. .NET Core 6.0 LTS (min)
  2. Any Linux or Windows CLI

How to Restore and Run

dotnet restore
dotnet run

How to Build as StandAlone

By default all app is x64, there are no x86/32 bit. You can build this either in Linux or Windows, or OSX and vice versa. Look more at this docs

Linux

dotnet publish --os linux --self-contained true -c Release

Windows

dotnet publish --os win --self-contained true -c Release

MacOS

dotnet publish --os osx --self-contained true -c Release

Why it's not responding to any broadcast?

By default, this software listen on port 11111, if the firewall block this port, then you won't even able got the broadcast from any package that send to broadcast, so you need to allow udp/11111 to be opened by firewall.