NSFW 1.0.2

dotnet add package NSFW --version 1.0.2
                    
NuGet\Install-Package NSFW -Version 1.0.2
                    
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.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="NSFW" Version="1.0.2" />
                    
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.2
                    
#r "nuget: NSFW, 1.0.2"
                    
#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.
#addin nuget:?package=NSFW&version=1.0.2
                    
Install NSFW as a Cake Addin
#tool nuget:?package=NSFW&version=1.0.2
                    
Install NSFW as a Cake Tool

NSFW

icon

Examples | Примеры

LAN Chat | Чат по локальной сети

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.Client.Connect("192.168.0.####:port"); // connect to "local_address:port"

Server:

User.Server.Start(); // start server with port of system preference
User.Server.Start(port); // start server with specific port
User.Server.Listen(); // listen to one incoming connection
User.Server.ListenAsync(); // listen every connection in other thread

The client and server have the following methods for exchanging data:

void Send<T>(T? data); T? Receive<T>(); void Send(byte[]? data); byte[]? receive();

Русский

Простая обертка над .net сокетами. Предоставляет класс User, имеющий поля сервер и клиент. При использовании поля клиент можно подключиться к серверу, а полем сервер начать прослушивать входящие подключения.

Клиент:

User.Client.Connect("192.168.0.####:port"); // подключиться по локальной сети к "адрес:порт"

Сервер:

User.Server.Start(); // запустить сервер с портом по предпочтению системы
User.Server.Start(port); // запустить сервер с установленным портом
User.Server.Listen(); // слушать входящее подключение
User.Server.ListenAsync(); // слушать все подключения в другом потоке

Клиент и сервер имеют следующие методы для обмена данными:

void Send<T>(T? data);
T? Receive<T>();
void Send(byte[]? data);
byte[]? Receive();

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. 
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 139 9/11/2023
1.0.1 136 8/2/2023
1.0.0 130 7/28/2023