public void AddEndpoint(NWEndpoint endpoint) { if (endpoint == null) { throw new ArgumentNullException(nameof(endpoint)); } nw_group_descriptor_add_endpoint(GetCheckedHandle(), endpoint.GetCheckedHandle()); }
public NWMulticastGroup(NWEndpoint endpoint) { if (endpoint == null) { throw new ArgumentNullException(nameof(endpoint)); } InitializeHandle(nw_group_descriptor_create_multicast(endpoint.GetCheckedHandle())); }
public NWConnection?ExtractConnection(NWEndpoint endpoint, NWProtocolOptions protocolOptions) { var ptr = nw_connection_group_extract_connection(GetCheckedHandle(), endpoint.GetCheckedHandle(), protocolOptions.GetCheckedHandle()); return(ptr == IntPtr.Zero ? null : new NWConnection(ptr, true)); }
public NWMultiplexGroup(NWEndpoint endpoint) : base(nw_group_descriptor_create_multiplex(endpoint.GetCheckedHandle()), true) { }