PhoenixTools.RemoteStream.Client
1.0.2
dotnet add package PhoenixTools.RemoteStream.Client --version 1.0.2
NuGet\Install-Package PhoenixTools.RemoteStream.Client -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="PhoenixTools.RemoteStream.Client" Version="1.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add PhoenixTools.RemoteStream.Client --version 1.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: PhoenixTools.RemoteStream.Client, 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.
// Install PhoenixTools.RemoteStream.Client as a Cake Addin #addin nuget:?package=PhoenixTools.RemoteStream.Client&version=1.0.2 // Install PhoenixTools.RemoteStream.Client as a Cake Tool #tool nuget:?package=PhoenixTools.RemoteStream.Client&version=1.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
RemoteStream
Network-distributed stream with gRpc connection .
Client stream supports async
operations.
Use PhoenixTools.RemoteStream.Client nuget package for a client-part stream, and PhoenixTools.RemoteStream.Server for a server-part.
Usage sample (server-side):
//Server endpoint
var ep = new IPEndPoint(IPAddress.Parse("10.10.10.10"), 7777);
//SSL certificate for HTTPS connection
var cert = File.ReadAllText("server.crt");
var key = File.ReadAllText("server.key");
//Source stream
var srcStream = File.Open("sample.bin", FileMode.Open);
var serverStream = new RemoteStreamServer(srcStream, ep, cert, key);
serverStream.ExceptionThrew += (_, exception) =>
{
//Exception handling...
};
serverStream.StreamClosed += (_, _) =>
{
//Stream close event handling...
};
//Other code....
//Dispose server
serverStream.Dispose();
//Dispose base stream
srcStream.Dispose();
Client-side sample
//Server endpoint
var ep = new IPEndPoint(IPAddress.Parse("10.10.10.10"), 7777);
//Create client-part of the stream
var clientStream = new RemoteStreamClient(ep, ConnectionType.Https);
//Create destination stream
var localFile = File.OpenWrite("dst.bin");
//Copy remote file to local
clientStream.CopyTo(localFile);
//Dispose streams
clientStream.Dispose();
localFile.Dispose();
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. 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.
-
net8.0
- Grpc.Net.Client (>= 2.67.0)
- PhoenixTools.RemoteStream.Protocol (>= 1.0.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Fixed a bug when the write buffer exceeded the gRpc MaxReceiveMessageSize value.