openNetworkSocketV6 method
inherited
Opens a side channel to the underlying IPv6 UDP socket. The side channel is used to send/receive raw UDP datagrams on the same socket that the sync protocol uses. This is useful to share the socket between different protocols for hole punching.
Returns None if QUIC IPv6 endpoint isn't bound (see Self::session_bind_network).
Implementation
Future<NetworkSocket?> openNetworkSocketV6(
) async {
final request = RequestSessionOpenNetworkSocketV6(
);
final response = await client.invoke(request);
switch (response) {
case ResponseNetworkSocket(value: final value): return NetworkSocket(client, value);
case ResponseNone(): return null;
default: throw UnexpectedResponse();
}
}