Пример #1
0
 /// <summary>
 /// Constructs an embeddable portmap service of class
 /// <code>OncRpcEmbeddedPortmap</code> and starts the service if no
 /// other (external) portmap service is available.
 /// </summary>
 /// <remarks>
 /// Constructs an embeddable portmap service of class
 /// <code>OncRpcEmbeddedPortmap</code> and starts the service if no
 /// other (external) portmap service is available.
 /// <p>The constructor starts the portmap service in its own thread and
 /// then returns.
 /// </remarks>
 /// <param name="checkTimeout">
 /// timeout in milliseconds to wait before assuming
 /// that no portmap service is currently available.
 /// </param>
 /// <seealso cref="embeddedPortmapInUse()">embeddedPortmapInUse()</seealso>
 /// <exception cref="org.acplt.oncrpc.OncRpcException"></exception>
 /// <exception cref="System.IO.IOException"></exception>
 public OncRpcEmbeddedPortmap(int checkTimeout)
 {
     if (!isPortmapRunning(checkTimeout))
     {
         embeddedPortmap = new OncRpcEmbeddedPortmap.embeddedjportmap
                               (this);
         embeddedPortmapThread = new OncRpcEmbeddedPortmap.OncRpcEmbeddedPortmapThread
                                     (this, embeddedPortmap);
         embeddedPortmap.serviceThread      = new Thread(new ThreadStart(embeddedPortmapThread.run));
         embeddedPortmap.serviceThread.Name = "Embedded Portmap Service Thread";
         embeddedPortmap.serviceThread.Start();
     }
 }
Пример #2
0
		/// <summary>
		/// Constructs an embeddable portmap service of class
		/// <code>OncRpcEmbeddedPortmap</code> and starts the service if no
		/// other (external) portmap service is available.
		/// </summary>
		/// <remarks>
		/// Constructs an embeddable portmap service of class
		/// <code>OncRpcEmbeddedPortmap</code> and starts the service if no
		/// other (external) portmap service is available.
		/// <p>The constructor starts the portmap service in its own thread and
		/// then returns.
		/// </remarks>
		/// <param name="checkTimeout">
		/// timeout in milliseconds to wait before assuming
		/// that no portmap service is currently available.
		/// </param>
		/// <seealso cref="embeddedPortmapInUse()">embeddedPortmapInUse()</seealso>
		/// <exception cref="org.acplt.oncrpc.OncRpcException"></exception>
		/// <exception cref="System.IO.IOException"></exception>
		public OncRpcEmbeddedPortmap(int checkTimeout)
		{
			if (!isPortmapRunning(checkTimeout))
			{
				embeddedPortmap = new OncRpcEmbeddedPortmap.embeddedjportmap
					(this);
				embeddedPortmapThread = new OncRpcEmbeddedPortmap.OncRpcEmbeddedPortmapThread
					(this, embeddedPortmap);
                embeddedPortmap.serviceThread = new Thread(new ThreadStart(embeddedPortmapThread.run));
                embeddedPortmap.serviceThread.Name = "Embedded Portmap Service Thread";
                embeddedPortmap.serviceThread.Start();
			}
		}
Пример #3
0
 /// <summary>
 /// Construct a new embedded portmap service thread and associate
 /// it with the portmap object to be used as the service.
 /// </summary>
 /// <remarks>
 /// Construct a new embedded portmap service thread and associate
 /// it with the portmap object to be used as the service. The service
 /// is not started yet.
 /// </remarks>
 public OncRpcEmbeddedPortmapThread(OncRpcEmbeddedPortmap _enclosing, OncRpcEmbeddedPortmap.embeddedjportmap
                                    portmap)
 {
     this._enclosing = _enclosing;
     this.portmap    = portmap;
 }
Пример #4
0
            /// <summary>
            /// Construct a new embedded portmap service thread and associate
            /// it with the portmap object to be used as the service.
            /// </summary>
            /// <remarks>
            /// Construct a new embedded portmap service thread and associate
            /// it with the portmap object to be used as the service. The service
            /// is not started yet.
            /// </remarks>
            public OncRpcEmbeddedPortmapThread(OncRpcEmbeddedPortmap _enclosing, OncRpcEmbeddedPortmap.embeddedjportmap
				 portmap)
            {
                this._enclosing = _enclosing;
                this.portmap = portmap;
            }