Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/philipp2604/mockablesocket
A library providing mockable sockets for C#.
https://github.com/philipp2604/mockablesocket
csharp dotnet-core network socket tcp udp
Last synced: 4 days ago
JSON representation
A library providing mockable sockets for C#.
- Host: GitHub
- URL: https://github.com/philipp2604/mockablesocket
- Owner: philipp2604
- License: mit
- Created: 2024-08-22T05:34:18.000Z (4 months ago)
- Default Branch: master
- Last Pushed: 2024-11-20T01:12:20.000Z (about 1 month ago)
- Last Synced: 2024-12-16T07:39:49.317Z (7 days ago)
- Topics: csharp, dotnet-core, network, socket, tcp, udp
- Language: C#
- Homepage:
- Size: 115 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# MockableSocket
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![build and test](https://github.com/philipp2604/MockableSocket/actions/workflows/build-and-test.yml/badge.svg)](https://github.com/philipp2604/MockableSocket/actions/workflows/build-and-test.yml) ![GitHub Release](https://img.shields.io/github/v/release/philipp2604/MockableSocket) [![NuGet Version](https://img.shields.io/nuget/v/philipp2604.MockableSocket)](https://www.nuget.org/packages/philipp2604.MockableSocket/)## Description
This library aims to provide mockable classes for socket communication in .Net Core.**This library is still WIP and not complete yet.**
**A lot of the functionality has not been tested yet!**
## Implementations
Right now, the following interfaces and classes are implemented:
* `INetworkStream` with `NetworkStreamW` as a replacement for `NetworkStream`
* `ISocket` with `SocketW` as a replacement for `Socket`
* `ISocketAsyncEventArgs` as a replacement for `SocketAsyncEventArgs`Additional wrappers:
* `ITcpClient` with `TcpClient` as a replacement for the standard .Net `TcpClient`## Download
You can acquire this library either directly via the NuGet package manager or by downloading it from the [NuGet Gallery](https://www.nuget.org/packages/philipp2604.MockableSocket/).## Questions? Problems?
**Feel free to reach out!**## Ideas / TODO
* Wrappers, like TcpClient... ?## License
This library is [MIT licensed](./LICENSE.txt).