NSFW 1.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package NSFW --version 1.0.0
                    
NuGet\Install-Package NSFW -Version 1.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="NSFW" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="NSFW" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="NSFW" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add NSFW --version 1.0.0
                    
#r "nuget: NSFW, 1.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package NSFW@1.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=NSFW&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=NSFW&version=1.0.0
                    
Install as a Cake Tool

NSFW

icon

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • 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.

Version Downloads Last Updated
1.0.2 225 9/11/2023
1.0.1 212 8/2/2023
1.0.0 212 7/28/2023