Advertisement
Guest User

Untitled

a guest
Feb 18th, 2011
345
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.76 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5.  
  6. namespace jM2
  7. {
  8.     class Program
  9.     {
  10.         static void Main(string[] args)
  11.         {
  12.             Server myServer = new Server("192.168.0.10", 43444);
  13.             myServer.Start();
  14.  
  15.             while (true)
  16.             {
  17.                 Console.Write("> ");
  18.                 switch (Console.ReadLine())
  19.                 {
  20.                     case "connections":
  21.                         myServer.Connections();
  22.                         break;
  23.                     case "exit":
  24.                         Environment.Exit(0);
  25.                         break;
  26.                     default:
  27.                         continue;
  28.                 }
  29.             }
  30.         }
  31.     }
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement