A family of .NET communication libraries for TCP, UDP, Serial, projector control (PJLink), and networked power management (NetBooter).
| Package | NuGet | Description |
|---|---|---|
| 🌐 TcpLink | Async TCP client with auto-reconnect and message queuing | |
| 📡 UdpLink | Async UDP client with configurable local/remote endpoints | |
| 🔌 SerialLink | RS-232 serial communication with optional frame-based protocol | |
| 🎬 ProjectorLink | PJLink protocol client for projector power control and queries | |
| 🔋 NetBooter | Synaccess NetBooter networked power outlet controller | |
| 🧩 Shared | Shared logging infrastructure (auto-included as dependency) |
- Asynchronous — Non-blocking I/O across all transport layers
- Thread-Safe — Lock-protected operations for concurrent access
- Message Queuing — FIFO queues (up to 100 messages) for reliable retrieval
- Event-Driven — Rich events for connection changes, data arrival, and errors
- Auto-Reconnect — TCP and Serial links recover automatically from failures
- Cross-Platform — Targets .NET 10.0, .NET Standard 2.0, and .NET Standard 2.1
Install only the packages you need:
dotnet add package ThreeByte.LinkLib.TcpLink
dotnet add package ThreeByte.LinkLib.UdpLink
dotnet add package ThreeByte.LinkLib.SerialLink
dotnet add package ThreeByte.LinkLib.ProjectorLink
dotnet add package ThreeByte.LinkLib.NetBooterusing ThreeByte.LinkLib.TcpLink;
var tcp = new AsyncTcpLink("192.168.1.100", 5000);
tcp.DataReceived += (s, e) => Console.WriteLine($"Got {tcp.GetMessage()?.Length} bytes");
byte[] cmd = System.Text.Encoding.ASCII.GetBytes("HELLO\r\n");
tcp.SendMessage(cmd);using ThreeByte.LinkLib.UdpLink;
var udp = new AsyncUdpLink("192.168.1.50", remotePort: 9000, localPort: 9001);
udp.SendMessage(System.Text.Encoding.ASCII.GetBytes("PING"));using ThreeByte.LinkLib.SerialLink;
var serial = new SerialLink("COM3", baudRate: 9600);
serial.SendData(new byte[] { 0x01, 0x02, 0x03 });using ThreeByte.LinkLib.ProjectorLink;
using var projector = new Projector("192.168.1.200");
projector.TurnOn();
PowerStatus status = projector.GetState();
string info = projector.GetInfo(); // "Epson EB-L1755U (Main Hall)"using ThreeByte.LinkLib.NetBooter;
var netBooter = new NetBooterLink("192.168.1.10");
netBooter.Power(outlet: 1, state: true); // Turn on outlet 1
netBooter.PollState();
bool isOn = netBooter[1]; // Check outlet stategraph TD
App["🖥️ Your Application"]
App --> TCP["🌐 TcpLink<br/><i>Async TCP Client</i>"]
App --> UDP["📡 UdpLink<br/><i>Async UDP Client</i>"]
App --> Serial["🔌 SerialLink<br/><i>RS-232 Communication</i>"]
App --> Projector["🎬 ProjectorLink<br/><i>PJLink Protocol</i>"]
App --> NetBooter["🔋 NetBooter<br/><i>HTTP Power Control</i>"]
TCP --> Shared["🧩 Shared<br/><i>LogFactory · Logging</i>"]
UDP --> Shared
Serial --> Shared
Projector --> Shared
NetBooter --> Shared
style App fill:#4a90d9,stroke:#2c5f8a,color:#fff
style TCP fill:#6c5ce7,stroke:#4a3db5,color:#fff
style UDP fill:#6c5ce7,stroke:#4a3db5,color:#fff
style Serial fill:#6c5ce7,stroke:#4a3db5,color:#fff
style Projector fill:#e17055,stroke:#b5553f,color:#fff
style NetBooter fill:#e17055,stroke:#b5553f,color:#fff
style Shared fill:#00b894,stroke:#009472,color:#fff
-
Create a new branch and make your changes in any
ThreeByte.LinkLib.*folder -
Commit and push to GitHub
-
Create a pull request to
mainand attach a label:major— breaking changesminor— new featurespatch— bug fixes
We follow Semantic Versioning
-
Merge your pull request
-
Your NuGet package will be available on nuget.org within ~5 minutes
Contributions are welcome! Please fork the repository and submit a pull request with your changes.
This project is licensed under the MIT License — see the LICENSE file for details.
MIT License
Copyright (c) 2025 Three Byte
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.