// // 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); }
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)); } }
public UdpEndpointI endpoint(UdpTransceiver transceiver) { return(new UdpEndpointI(instance_, host_, transceiver.effectivePort(), sourceAddr_, _mcastInterface, _mcastTtl, _connect, connectionId_, _compress)); }
public UdpEndpointI endpoint(UdpTransceiver transceiver) { return new UdpEndpointI(instance_, host_, transceiver.effectivePort(), sourceAddr_, _mcastInterface, _mcastTtl, _connect, connectionId_, _compress); }
// // 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; }