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); }
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); }
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); } }
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); } }
public static void write__(IceInternal.BasicStream os__, RemoteLogPrx v__) { os__.writeProxy(v__); }