示例#1
0
        //
        // Return an acceptor for this endpoint, or null if no acceptor
        // is available. In case an acceptor 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 IceInternal.Acceptor acceptor(ref IceInternal.EndpointI endpoint, string adapterName)
        {
            AcceptorI p = new AcceptorI(_instance, adapterName, _host, _port);

            endpoint = new EndpointI(_instance, _host, p.effectivePort(), _timeout, connectionId_, _compress);
            return(p);
        }
示例#2
0
文件: EndpointI.cs 项目: externl/ice
 public EndpointI endpoint(AcceptorI acceptor)
 {
     return new EndpointI(_instance, host_, acceptor.effectivePort(), sourceAddr_, _timeout, connectionId_,
                          _compress);
 }
示例#3
0
 public EndpointI endpoint(AcceptorI acceptor)
 {
     return(new EndpointI(_instance, host_, acceptor.effectivePort(), sourceAddr_, _timeout, connectionId_,
                          _compress));
 }
示例#4
0
 //
 // Return an acceptor for this endpoint, or null if no acceptor
 // is available. In case an acceptor 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 IceInternal.Acceptor acceptor(ref IceInternal.EndpointI endpoint, string adapterName)
 {
     AcceptorI p = new AcceptorI(_instance, adapterName, _host, _port);
     endpoint = new EndpointI(_instance, _host, p.effectivePort(), _timeout, connectionId_, _compress);
     return p;
 }