Results 1 to 2 of 2

Thread: Maintain connected sockets across process restart

  1. #1
    .NET Framework
    .NET 4.5
    Join Date
    Dec 2018
    Rep Power

    Maintain connected sockets across process restart


    A friend of mine has developed a software platform that is accessed over telnet. The program has the ability to restart itself when issued a command to load in new changes made to the code itself. When this happens, the connected sockets stay connected because they are passed to another process, and then back once the service has restarted.

    He looked at porting it to dotnet core but one of the issues is the DuplicateAndClose() function is removed, which is how this was accomplished before. We have been thus far unable to locate a suitable replacement of DuplicateAndClose to keep the connected clients alive across the service restart and I'm looking for advice from the community on how we may accomplish this. Any ideas or help is appreciated.

  2. #2
    .NET Framework
    .NET 4.5
    Join Date
    Apr 2011
    Rep Power
    .NET source code is available publicly for you to read for yourself. You should r4ead the source code for that method to see how it is implemented and see whether you can do the same or similar yourself.

Similar Threads

  1. Question Restart timer on FileCreated Event
    By pablobhz in forum C# General Discussion
    Replies: 2
    Last Post: 09-05-2018, 2:36 AM
  2. Getting the process parent that started a process / task?
    By i73 in forum C# General Discussion
    Replies: 3
    Last Post: 11-30-2017, 7:27 PM
  3. Question Windows Application to Maintain Fuel Dispensers Readings and Sales
    By dtoxic in forum Windows Forms
    Replies: 1
    Last Post: 06-15-2017, 7:14 AM
  4. How to Access HTTPS Web Page using Sockets
    By Krishnaa in forum Net / Sockets
    Replies: 0
    Last Post: 02-02-2015, 3:37 PM
  5. Maintain the selected record after upgrade Fill
    By Jair Souza in forum Winforms Grids
    Replies: 3
    Last Post: 10-07-2013, 12:21 PM


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts