Esempio n. 1
0
        public static RemoteLogPrx uncheckedCast(Ice.ObjectPrx b)
        {
            if (b == null)
            {
                return(null);
            }
            RemoteLogPrx r = b as RemoteLogPrx;

            if (r == null)
            {
                RemoteLogPrxHelper h = new RemoteLogPrxHelper();
                h.copyFrom__(b);
                r = h;
            }
            return(r);
        }
Esempio n. 2
0
        public static RemoteLogPrx checkedCast(Ice.ObjectPrx b, _System.Collections.Generic.Dictionary <string, string> ctx)
        {
            if (b == null)
            {
                return(null);
            }
            RemoteLogPrx r = b as RemoteLogPrx;

            if ((r == null) && b.ice_isA(ice_staticId(), ctx))
            {
                RemoteLogPrxHelper h = new RemoteLogPrxHelper();
                h.copyFrom__(b);
                r = h;
            }
            return(r);
        }
Esempio n. 3
0
        public static void createClient(string ip, string port, string proxyname, string name, string time, string msg)
        {
            try
            {
                Ice.Communicator communicator = Ice.Util.initialize();
                logStation = RemoteLogPrxHelper.checkedCast(
                    communicator.stringToProxy(String.Format("{0}:tcp -h {1} -p {2}", proxyname, ip, port)));
                System.Console.WriteLine("Connection Successful");

                Client.logStation.log(name, time, msg);
                while (true)
                {
                };
                communicator.destroy();
            }
            catch (System.Exception ex)
            {
                System.Console.Error.WriteLine(ex);
                System.Environment.Exit(1);
            }
        }
Esempio n. 4
0
        public static void createClient(string ip, string port, string proxyname, string name, string time, string msg)
        {
            try
            {
                Ice.Communicator communicator = Ice.Util.initialize();
                logStation = RemoteLogPrxHelper.checkedCast(
                    communicator.stringToProxy(String.Format("{0}:tcp -h {1} -p {2}", proxyname, ip, port)));
                System.Console.WriteLine("Connection Successful");

                Client.logStation.log(name, time, msg);
                while (true)
                {
                }
                ;
                communicator.destroy();
            }
            catch (System.Exception ex)
            {
                System.Console.Error.WriteLine(ex);
                System.Environment.Exit(1);
            }
        }
Esempio n. 5
0
 public static void write__(IceInternal.BasicStream os__, RemoteLogPrx v__)
 {
     os__.writeProxy(v__);
 }
Esempio n. 6
0
 public static void write__(IceInternal.BasicStream os__, RemoteLogPrx v__)
 {
     os__.writeProxy(v__);
 }