Skip to main content
Version: 15.x (API 15) [Legacy]

Class HappyEyeballsCallback

A class to provide a System.Net.Http.SocketsHttpHandler.ConnectCallback method to implement a variant of the Happy Eyeballs algorithm for HTTP connections to dual-stack servers.

Assembly: Dalamud.dll​
Declaration
public class HappyEyeballsCallback : IDisposable

Implements:
System.IDisposable

Methods​

Dispose()​

Declaration
public void Dispose()

ConnectCallback(SocketsHttpConnectionContext, CancellationToken)​

The connection callback to provide to a System.Net.Http.SocketsHttpHandler.

Declaration
public ValueTask<Stream> ConnectCallback(SocketsHttpConnectionContext context, CancellationToken token)
Returns​

System.Threading.Tasks.ValueTask<System.IO.Stream>: Returns a Stream for consumption by HttpClient.

Parameters​
TypeNameDescription
System.Net.Http.SocketsHttpConnectionContextcontextThe context for an HTTP connection.
System.Threading.CancellationTokentokenThe cancellation token to abort this request.

Implements​

  • System.IDisposable