This API has been proposed and approved on #861.
Since we're closing the mega-issue(#33418) we'll track this here.
class Socket
{
// existing: public static bool ConnectAsync(SocketType socketType, ProtocolType protocolType, SocketAsyncEventArgs e);
public static bool ConnectAsync (SocketType socketType, ProtocolType protocolType, SocketAsyncEventArgs e, ConnectAlgorithm connectAlgorithm);
}
// new enum
enum ConnectAlgorithm
{
// use existing behavior.
Default,
// use a Happy Eyeballs-like algorithm to connect.
Parallel = 1
}
This API has been proposed and approved on #861.
Since we're closing the mega-issue(#33418) we'll track this here.