예제 #1
0
        public MainWindow()
        {
            InitializeComponent();

            int Port = 85;

            ServerModule = new Manager.SockServer.Server();

            try
            {
                ServerModule.Start(Port);
            }
            catch
            {
                return;
            }
            ServerModule.ClientsReceiveCommand += new OnClientsReceiveCommand(ServerModule_ClientReceiveCommand);

            //LB_Users.ItemsSource = ServerModule.Clients;
            LB_Users.DisplayMemberPath = "ClientInfo";
        }
예제 #2
0
파일: App.xaml.cs 프로젝트: gonznak/Socket
 public App()
 {
     proxyServer = new Manager.SockServer.Server();
     proxyServer.ClientsReceiveCommand += new OnClientsReceiveCommand(proxyServer_ClientReceiveCommand);
     proxyServer.Start(85);
 }