Beispiel #1
0
 /// <summary>Create an instance of an ONC/RPC portmapper and run it.</summary>
 /// <remarks>
 /// Create an instance of an ONC/RPC portmapper and run it. As we have
 /// to bootstrap the ONC/RPC port information chain, we do not use the
 /// usual overloaded <code>run()</code> method without any parameters,
 /// but instead supply it the transports to handle. Registration and
 /// deregistration is not necessary and not possible.
 /// </remarks>
 public static void Main(string[] args)
 {
     try
     {
         csportmap pmap = new csportmap
                              ();
         pmap.run(pmap.transports);
         pmap.Close(pmap.transports);
     }
     catch (org.acplt.oncrpc.OncRpcException e)
     {
         Console.Out.WriteLine(e.Message);
         Console.Out.WriteLine(e.StackTrace);
     }
     catch (System.IO.IOException e)
     {
         Console.Out.WriteLine(e.Message);
         Console.Out.WriteLine(e.StackTrace);
     }
 }
Beispiel #2
0
		/// <summary>Create an instance of an ONC/RPC portmapper and run it.</summary>
		/// <remarks>
		/// Create an instance of an ONC/RPC portmapper and run it. As we have
		/// to bootstrap the ONC/RPC port information chain, we do not use the
		/// usual overloaded <code>run()</code> method without any parameters,
		/// but instead supply it the transports to handle. Registration and
		/// deregistration is not necessary and not possible.
		/// </remarks>
		public static void Main(string[] args)
		{
			try
			{
				csportmap pmap = new csportmap
					();
				pmap.run(pmap.transports);
				pmap.Close(pmap.transports);
			}
			catch (org.acplt.oncrpc.OncRpcException e)
			{
                Console.Out.WriteLine(e.Message);
                Console.Out.WriteLine(e.StackTrace);
			}
			catch (System.IO.IOException e)
			{
                Console.Out.WriteLine(e.Message);
                Console.Out.WriteLine(e.StackTrace);
			}
		}