예제 #1
0
 public void AddEndpoint(NWEndpoint endpoint)
 {
     if (endpoint == null)
     {
         throw new ArgumentNullException(nameof(endpoint));
     }
     nw_group_descriptor_add_endpoint(GetCheckedHandle(), endpoint.GetCheckedHandle());
 }
예제 #2
0
        public NWMulticastGroup(NWEndpoint endpoint)
        {
            if (endpoint == null)
            {
                throw new ArgumentNullException(nameof(endpoint));
            }

            InitializeHandle(nw_group_descriptor_create_multicast(endpoint.GetCheckedHandle()));
        }
예제 #3
0
        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));
        }
예제 #4
0
 public NWMultiplexGroup(NWEndpoint endpoint)
     : base(nw_group_descriptor_create_multiplex(endpoint.GetCheckedHandle()), true)
 {
 }