NSFW 1.0.0
See the version list below for details.
dotnet add package NSFW --version 1.0.0
NuGet\Install-Package NSFW -Version 1.0.0
<PackageReference Include="NSFW" Version="1.0.0" />
<PackageVersion Include="NSFW" Version="1.0.0" />
<PackageReference Include="NSFW" />
paket add NSFW --version 1.0.0
#r "nuget: NSFW, 1.0.0"
#:package NSFW@1.0.0
#addin nuget:?package=NSFW&version=1.0.0
#tool nuget:?package=NSFW&version=1.0.0
NSFW
English
A simple wrapper over .net sockets. Provides a User class that has server and client fields. When using the client box, you can connect to the server, and the server box starts listening for incoming connections.
Client:
User.Current.Client.Connect("192.168.0.####:port"); // connect to "local_address:port"
Server:
User.Current.Server.Start(); // start server with port of system preference
User.Current.Server.Start(port); // start server with specific port
User.Current.Server.Listen(); // listen to one incoming connection
User.Current.Server.ListenAsync(); // listen every connection in other thread
Also, each of these fields has an OnConnect event. On the client, it happens after connection On the server, it handles every connection
Русский
Простая обертка над .net сокетами. Предоставляет класс User, имеющий поля сервер и клиент. При использовании поля клиент можно подключиться к серверу, а полем сервер начать прослушивать входящие подключения.
Клиент:
User.Current.Client.Connect("192.168.0.####:port"); // подключиться по локальной сети к "адрес:порт"
Сервер:
User.Current.Server.Start(); // запустить сервер с портом по предпочтению системы
User.Current.Server.Start(port); // запустить сервер с установленным портом
User.Current.Server.Listen(); // слушать входящее подключение
User.Current.Server.ListenAsync(); // слушать все подключения в другом потоке
Также каждое из этих полей имеет событие OnConnect. На клиенте оно происходит после подключения На сервере оно отрабатывает каждое подключение
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net6.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.