Menu

#141 Support socket inheritance (For DOS doors on modern BBSs)

closed
Qbix
None
5
2012-09-07
2005-11-22
No

Support passing a socket handle on the command-line
which is used to set up a virtual modem already in the
connected state. I use this to run DOS doors on my
Synchronet BBS systems. I'm sure there are many other
uses too...

Syntax is as follows:
dosbox -socket <descriptor> [ -telnet ]

Passing -telnet makes it start in telnet mode (assumed
to be in binary echo mode with GA supressed)

Discussion

  • Stephen James Hurd

    Patch to softmodem.cpp (from dosbox root) to allow socket inheritence.

     
  • Stephen James Hurd

    Logged In: YES
    user_id=168633

    I looked into merging this with the current CVS code, but
    have no clue what to to about initializing the registers.
    Something is CSerial is preventing the doors from detecting
    the carrier. I fumbled my way through to:
    CSerial::setCD(true);
    CSerial::setRI(false);
    CSerial::setCTS(true);
    CSerial::setDSR(true);
    CSerial::Write_MCR(MCR_RTS_MASK|MCR_DTR_MASK);
    CSerial::Write_MSR(0xff);

    Before I gave up in favour of sleep.

     
  • Stephen James Hurd

    Logged In: YES
    user_id=168633

    Ah, lack of sleep makes you not remove the exit from the
    [autoexec] section of your .conf file. This is a patch
    against current CVS (working)

     
  • Stephen James Hurd

    Logged In: YES
    user_id=168633

    Hrm, I know I uploaded the patch against CVS earlier.
    Lack of sleep had fried my brain... it now works great.

     
  • Stephen James Hurd

    Logged In: YES
    user_id=168633

    Match updated by h-a-l-9000 for Win32 compatability.

     
  • Stephen James Hurd

    Patch to softmodem.cpp (from dosbox root) to allow socket inheritence. - For current CVS. (Updated for Win32 compatability by h-a-l-9000)

     
  • Qbix

    Qbix - 2007-05-12

    Logged In: YES
    user_id=535630
    Originator: NO

    Present in 0.70

     

Log in to post a comment.