public void OnStart()
 {
     _Desktop_Service = new Desktop_Service();
     _Desktop_Service.ScreenUpdateEvent += _Desktop_Service_ScreenUpdateEvent;
     _Desktop_Service.MouseImageChangedEvent += _Desktop_Service_MouseImageChangedEvent;
     _Desktop_Service.MousePositionChangedEvent += _Desktop_Service_MousePositionChangedEvent;
     _Server = new TCP_Server(Path.GetDirectoryName(System.Reflection.Assembly.GetEntryAssembly().Location) + "\\privatekey.xml", 443);
     _Server.ReceiveEvent += _server_ReceiveEvent;
     _Server.NewClientEvent += _Server_NewClientEvent;
     _Server.DisconnectEvent += _Server_DisconnectEvent;
     RunNetwork();
 }
Esempio n. 2
0
 public void OnStart()
 {
     _Desktop_Service = new Desktop_Service();
     _Desktop_Service.ScreenUpdateEvent         += _Desktop_Service_ScreenUpdateEvent;
     _Desktop_Service.MouseImageChangedEvent    += _Desktop_Service_MouseImageChangedEvent;
     _Desktop_Service.MousePositionChangedEvent += _Desktop_Service_MousePositionChangedEvent;
     _Server = new TCP_Server(Path.GetDirectoryName(System.Reflection.Assembly.GetEntryAssembly().Location) + "\\privatekey.xml", 443);
     _Server.ReceiveEvent    += _server_ReceiveEvent;
     _Server.NewClientEvent  += _Server_NewClientEvent;
     _Server.DisconnectEvent += _Server_DisconnectEvent;
     RunNetwork();
 }