NSFW 1.0.2
dotnet add package NSFW --version 1.0.2
NuGet\Install-Package NSFW -Version 1.0.2
<PackageReference Include="NSFW" Version="1.0.2" />
<PackageVersion Include="NSFW" Version="1.0.2" />
<PackageReference Include="NSFW" />
paket add NSFW --version 1.0.2
#r "nuget: NSFW, 1.0.2"
#addin nuget:?package=NSFW&version=1.0.2
#tool nuget:?package=NSFW&version=1.0.2
NSFW
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 | 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. |
-
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.