pYove 1.0.0

Socks4/Socks5 for IWebProxy

Install-Package pYove -Version 1.0.0
dotnet add package pYove --version 1.0.0
<PackageReference Include="pYove" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add pYove --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

pYove Socks4/Socks5 for IWebProxy

This project is suitable for all WebProxy, HTTP Client, WebSocket and for others.

Example


new ProxyClient("138.68.161.60", 1080, ProxyType.Socks5);

WebSocket


ClientWebSocket WebSocket = new ClientWebSocket();

WebSocket.Options.Proxy = new ProxyClient("138.68.161.60", 1080, ProxyType.Socks4);

await WebSocket.ConnectAsync(new Uri("wss://echo.websocket.org"), TokenSource.Token);

HttpClient


HttpClientHandler Handler = new HttpClientHandler()
{
    Proxy = new ProxyClient("138.68.161.60", 1080, ProxyType.Socks4)
};

using (HttpClient Client = new HttpClient(Handler))
{
    var Response = await Client.GetStringAsync("https://api.ipify.org/?format=json");

    Console.WriteLine(Response);
}

pYove Socks4/Socks5 for IWebProxy

This project is suitable for all WebProxy, HTTP Client, WebSocket and for others.

Example


new ProxyClient("138.68.161.60", 1080, ProxyType.Socks5);

WebSocket


ClientWebSocket WebSocket = new ClientWebSocket();

WebSocket.Options.Proxy = new ProxyClient("138.68.161.60", 1080, ProxyType.Socks4);

await WebSocket.ConnectAsync(new Uri("wss://echo.websocket.org"), TokenSource.Token);

HttpClient


HttpClientHandler Handler = new HttpClientHandler()
{
    Proxy = new ProxyClient("138.68.161.60", 1080, ProxyType.Socks4)
};

using (HttpClient Client = new HttpClient(Handler))
{
    var Response = await Client.GetStringAsync("https://api.ipify.org/?format=json");

    Console.WriteLine(Response);
}

  • .NETStandard 2.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 History

Version Downloads Last updated
1.0.0 894 10/25/2018