Source code
Revision control
Copy as Markdown
Other Tools
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
#include "HappyEyeballs.h"
namespace mozilla {
namespace net {
// static
nsresult HappyEyeballs::Init(HappyEyeballs** aHappyEyeballs,
const nsACString& aOrigin, uint16_t aPort,
const nsTArray<happy_eyeballs::AltSvc>* aAltSvc,
happy_eyeballs::IpPreference aPref,
happy_eyeballs::HttpVersions aHttpVersions,
uint32_t aResolutionDelayMs,
uint32_t aConnectionAttemptDelayMs) {
return happy_eyeballs::happy_eyeballs_create(
(const HappyEyeballs**)aHappyEyeballs, &aOrigin, aPort, aAltSvc, aPref,
aHttpVersions, aResolutionDelayMs, aConnectionAttemptDelayMs);
}
} // namespace net
} // namespace mozilla