Example #1
0
        static void Main(string[] args)
        {
            try
            {
                connection_session connection = new connection_session("192.168.1.31\nnewgenstudios.duckdns.org\nlocalhost", 6119, "jacob.asmuth", "jacob.asmuth1234");
                connection.write(string.Format("GetEmployee_Username \"{0}\"", "a"));

            }
            catch (Exception e)
            {
               Console.WriteLine(e.Message);
            }
            //FIGURE OUT WHY THIS ISN'T WORKING
        }
Example #2
0
        public static int Main( String[] args )
        {
            Console.WriteLine( "Enter the host: " );
            string host = Console.ReadLine();

            Console.WriteLine( "Enter the port: " );
            int port = Int32.Parse( Console.ReadLine() );

            Console.WriteLine( "Enter your username: "******"Enter your password: "******"connecting..." );
            while( true )
            {
                server.write( new message( Console.ReadLine() ) );
            }
            return 0;
        }
Example #3
0
        public static int Main(String[] args)
        {
            Console.WriteLine("Enter the host: ");
            string host = Console.ReadLine();

            Console.WriteLine("Enter the port: ");
            int port = Int32.Parse(Console.ReadLine());

            Console.WriteLine("Enter your username: "******"Enter your password: "******"connecting...");
            while (true)
            {
                server.write(new message(Console.ReadLine()));
            }
            return(0);
        }