Esempio n. 1
0
        static TransportLayerCommunicator transportLayerCommunicator;         // = TransportLayerCommunicator.getRefTransportLayerCommunicator();

#if SIM
        public static void Main(string[] args)
        {
            Console.WriteLine("hello");
            //Console.WriteLine(args.Length);

            if (args.Length >= 1)
            {
                //byte[] byteIP = System.Text.Encoding.ASCII.GetBytes(args[0]);
                String[] IPsplit = args[0].Split(new char[] { '.' });
                Console.WriteLine("Hi there");

                IPAddress ipAddress = UtilityMethod.convertStrToIP(args[0]);

                UtilityMethod.SetLocalHostIP(ipAddress);
                Console.Write("received port=");
                Console.WriteLine(args[1]);
                UtilityMethod.SetPort(args[1]);

                transportLayerCommunicator = TransportLayerCommunicator.getRefTransportLayerCommunicator();

                //FileAppender fileAppender = new FileAppender();
                //	fileAppender.File = "E:/manga";
                //BasicConfigurator.Configure(fileAppender);
                //log.Info("hi");
                //string fn = @"e:\ratul\code\tashjik\logs\" + args[0]+ ".txt";
                //TextWriter errStream = new StreamWriter(fn);
                //Console.SetError(errStream);
                //Console.SetOut(errStream);
            }
Esempio n. 2
0
        public static void Main()
        {
            TransportLayerCommunicator transportLayerCommunicator = TransportLayerCommunicator.getRefTransportLayerCommunicator();

            while (true)
            {
            }
        }
Esempio n. 3
0
        static TransportLayerCommunicator transportLayerCommunicator;         // = TransportLayerCommunicator.getRefTransportLayerCommunicator();

#if SIM
        public static void Main(string[] args)
        {
            Console.WriteLine("hello");
            //Console.WriteLine(args.Length);

            if (args.Length >= 1)
            {
                //byte[] byteIP = System.Text.Encoding.ASCII.GetBytes(args[0]);
                String[] IPsplit = args[0].Split(new char[] { '.' });
                Console.WriteLine("Hi there");

                IPAddress ipAddress = UtilityMethod.convertStrToIP(args[0]);

                UtilityMethod.SetLocalHostIP(ipAddress);
                Console.Write("received port=");
                Console.WriteLine(args[1]);
                UtilityMethod.SetPort(args[1]);

                transportLayerCommunicator = TransportLayerCommunicator.getRefTransportLayerCommunicator();
            }