Example #1
0
 public void run(string dir, ServerForm _form)
 {
     form = _form;
     ServerDirectory = dir;
     Debug.Write("Server dir " + ServerDirectory);
     tftpServer = new TftpServer();
     {
         tftpServer.OnReadRequest += new TftpServerEventHandler(server_OnReadRequest);
         tftpServer.OnWriteRequest += new TftpServerEventHandler(server_OnWriteRequest);
         tftpServer.Start();
         form.Log.Invoke($"Server started!");
     }
 }
Example #2
0
        private void server_Click(object sender, EventArgs e)
        {
            ServerForm server = new ServerForm();

            server.Show();
        }