Пример #1
0
        //
        // Return a server side transceiver for this endpoint, or null if a
        // transceiver can only be created by an acceptor. In case a
        // transceiver is created, this operation also returns a new
        // "effective" endpoint, which might differ from this endpoint,
        // for example, if a dynamic port number is assigned.
        //
        public override Transceiver transceiver(ref EndpointI endpoint)
        {
            UdpTransceiver p = new UdpTransceiver(instance_, _host, _port, _mcastInterface, _connect);

            endpoint = new UdpEndpointI(instance_, _host, p.effectivePort(), _mcastInterface, _mcastTtl,
                                        _connect, connectionId_, _compress);
            return(p);
        }
Пример #2
0
        public UdpEndpointI endpoint(UdpTransceiver transceiver)
        {
            int port = transceiver.effectivePort();

            if (port == port_)
            {
                return(this);
            }
            else
            {
                return(new UdpEndpointI(instance_, host_, port, sourceAddr_, _mcastInterface, _mcastTtl, _connect,
                                        connectionId_, _compress));
            }
        }
Пример #3
0
 public UdpEndpointI endpoint(UdpTransceiver transceiver)
 {
     return(new UdpEndpointI(instance_, host_, transceiver.effectivePort(), sourceAddr_, _mcastInterface,
                             _mcastTtl, _connect, connectionId_, _compress));
 }
Пример #4
0
 public UdpEndpointI endpoint(UdpTransceiver transceiver)
 {
     return new UdpEndpointI(instance_, host_, transceiver.effectivePort(), sourceAddr_, _mcastInterface,
                             _mcastTtl, _connect, connectionId_, _compress);
 }
Пример #5
0
 //
 // Return a server side transceiver for this endpoint, or null if a
 // transceiver can only be created by an acceptor. In case a
 // transceiver is created, this operation also returns a new
 // "effective" endpoint, which might differ from this endpoint,
 // for example, if a dynamic port number is assigned.
 //
 public override Transceiver transceiver(ref EndpointI endpoint)
 {
     UdpTransceiver p = new UdpTransceiver(instance_, _host, _port, _mcastInterface, _connect);
     endpoint = new UdpEndpointI(instance_, _host, p.effectivePort(), _mcastInterface, _mcastTtl, 
                                 _connect, connectionId_, _compress);
     return p;
 }