• src/sexpots/sexpots.c

    From Rob Swindell@1:103/705 to Git commit to sbbs/master on Fri Sep 11 17:53:44 2020
    https://gitlab.synchro.net/sbbs/sbbs/-/commit/1c4c3c5bdeddae857b931ea0
    Modified Files:
    src/sexpots/sexpots.c
    Log Message:
    Resolve GCC warnings.
    --- SBBSecho 3.11-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell@1:103/705 to Git commit to sbbs/master on Fri Sep 11 17:53:44 2020
    https://gitlab.synchro.net/sbbs/sbbs/-/commit/f32870268764f23e33afad97
    Modified Files:
    src/sexpots/sexpots.c
    Log Message:
    Update Id keyword. Not sure why.
    --- SBBSecho 3.11-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell@1:103/705 to Git commit to sbbs/master on Mon Sep 14 20:04:13 2020
    https://gitlab.synchro.net/sbbs/sbbs/-/commit/26f06b3b0396263d4a7cbbab
    Modified Files:
    src/sexpots/sexpots.c
    Log Message:
    In Windows build, we need/use that NAME argument in the usage output.
    --- SBBSecho 3.11-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell@1:103/705 to Git commit to main/sbbs/master on Fri Jan 21 19:49:46 2022
    https://gitlab.synchro.net/main/sbbs/-/commit/6fde2a0e4c11b5376ecac3f6
    Modified Files:
    src/sexpots/sexpots.c
    Log Message:
    Add a -syslog option for *nix builds to force log output to syslogfor Nelgin --- SBBSecho 3.14-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell@1:103/705 to Git commit to main/sbbs/master on Fri Jan 21 20:00:33 2022
    https://gitlab.synchro.net/main/sbbs/-/commit/c6fde03fbbdbd8efc9d181eb
    Modified Files:
    src/sexpots/sexpots.c
    Log Message:
    Fix issue that prevent "-syslog" option from being used (on *nix)Fixed a couple sprintf() buffer overflow warnings/issues.
    --- SBBSecho 3.14-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell@1:103/705 to Git commit to main/sbbs/master on Sun Jan 23 01:35:25 2022
    https://gitlab.synchro.net/main/sbbs/-/commit/4c33738ef1c22dd74a5122ac
    Modified Files:
    src/sexpots/sexpots.c
    Log Message:
    Optionally send a prompt to connected userWait up to 10 seconds for a single-char reply to the prompt and if a non-control character was received, use the [TCP:x] (x is the character sent by the user) from the sexpots.ini for the Host and Port values to connect to.An experimental feature for Nelgin.
    --- SBBSecho 3.14-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell@1:103/705 to Git commit to main/sbbs/master on Sun Jan 23 02:08:41 2022
    https://gitlab.synchro.net/main/sbbs/-/commit/9798f30aeea0432edf99b76d
    Modified Files:
    src/sexpots/sexpots.c
    Log Message:
    Make PromptTimeout configurable (default to 0/infinite)Set to number of seconds to timeout, if desired.Log the received character in response to the prompt.
    --- SBBSecho 3.14-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell@1:103/705 to Git commit to main/sbbs/master on Sun Jan 23 02:27:37 2022
    https://gitlab.synchro.net/main/sbbs/-/commit/b8dcc1e8e52f5f877134bb5f
    Modified Files:
    src/sexpots/sexpots.c
    Log Message:
    Optional clear-screen before sending bannerSet CLS=true in the root section of sexpots.ini to enable. Sends a ^L ASCII 12 0x0c FF CS whatever you want to call it to the remote terminal before sending the carriage return and copyright banner. For Nelgin.
    --- SBBSecho 3.14-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell@1:103/705 to Git commit to main/sbbs/master on Sun Jan 23 02:46:47 2022
    https://gitlab.synchro.net/main/sbbs/-/commit/3efb480e94cf03396a17dc0a
    Modified Files:
    src/sexpots/sexpots.c
    Log Message:
    Change default PromptTimeout to 60 (seconds)Also log a warning if a control character is received in response to the prompt, or log a notice if there's a timeout waiting for a response to the prompt. Change the non-control character response value to a debug-level log message.
    --- SBBSecho 3.14-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell@1:103/705 to Git commit to main/sbbs/master on Sun Jan 23 03:07:50 2022
    https://gitlab.synchro.net/main/sbbs/-/commit/a355fdf9c745695292036c3e
    Modified Files:
    src/sexpots/sexpots.c
    Log Message:
    Re-parse the "TCP" section before sending (optional) PromptWe need to re-parse the default sexpots.ini [TCP] section for every new session (when using the Prompt feature) or else there's no way to connect to the default host.Also, telnet to be enabled or disabled (e.g. by setting Telnet=false) in any [TCP] or [TCP:x] section to support a mix of Telnet and non-Telnet hosts.
    --- SBBSecho 3.14-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deucе@1:103/705 to Git commit to main/sbbs/master on Mon Jan 24 16:32:02 2022
    https://gitlab.synchro.net/main/sbbs/-/commit/947e9258b59e56a22cea0a2e
    Modified Files:
    src/sexpots/sexpots.c
    Log Message:
    Actually do bounds checking on timeout.Fix warning while we're here.
    --- SBBSecho 3.14-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deucе@1:103/705 to Git commit to main/sbbs/master on Mon Jan 24 16:34:03 2022
    https://gitlab.synchro.net/main/sbbs/-/commit/1da032deaaa38823eebe0d94
    Modified Files:
    src/sexpots/sexpots.c
    Log Message:
    Allow one second longer for timeout
    --- SBBSecho 3.14-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell@1:103/705 to Git commit to main/sbbs/master on Tue Jan 25 18:10:44 2022
    https://gitlab.synchro.net/main/sbbs/-/commit/9187c26df0899951d52897e0
    Modified Files:
    src/sexpots/sexpots.c
    Log Message:
    Remove the extra stderr output for debug-level log msgs on *nixAs reported by Nelgin
    --- SBBSecho 3.14-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell@1:103/705 to Git commit to main/sbbs/master on Sat Jan 29 20:19:22 2022
    https://gitlab.synchro.net/main/sbbs/-/commit/af4a8764c35db996c89bb734
    Modified Files:
    src/sexpots/sexpots.c
    Log Message:
    Add optional RingCount and RingInterval [modem] settingsOnly used in manual answer mode,RingCount defaults 1 (answer after the first ring) and RingInterval defaults to 6000 (maximum elapsed milliseconds between rings of the same "call").This should address issue/feature-request #330 by Nelgin. Give that a try.
    --- SBBSecho 3.14-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell@1:103/705 to Git commit to main/sbbs/master on Sun Jan 30 20:58:26 2022
    https://gitlab.synchro.net/main/sbbs/-/commit/6977a080e9258f6e663f7bb5
    Modified Files:
    src/sexpots/sexpots.c
    Log Message:
    Support an optional log identifier to syslog()Nelgin: "anyway to get sexpots to report itself differently to syslog" [?]
    --- SBBSecho 3.14-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell@1:103/705 to Git commit to main/sbbs/master on Mon Feb 7 22:05:30 2022
    https://gitlab.synchro.net/main/sbbs/-/commit/869e0ebdf76bbc8417682ec1
    Modified Files:
    src/sexpots/sexpots.c
    Log Message:
    Setting IgnoreDCD=true causes wait_for_call() to immediate returnFor Nelgin's null modem setup, putty doesn't raise DTR?<nelgin> sexpots 1492 root 3u CHR 4,64 0t0 90 /dev/ttyS0<nelgin> Well, it's listening, but when I connect with putty I get nothing.<nelgin> DigitalMan, probably always assume a client is connected since I have my pc wired to my linux box.
    --- SBBSecho 3.14-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell@1:103/705 to Git commit to main/sbbs/master on Mon Feb 7 23:46:45 2022
    https://gitlab.synchro.net/main/sbbs/-/commit/8cf2abe7b7402672e0602167
    Modified Files:
    src/sexpots/sexpots.c
    Log Message:
    Parse/apply [COM:x] section upon prompted key press of 'x'Another hack for Nelgin: this'll allow (in theory) the serial device to switch parity modes (e.g. 8N1 or 7E1) depending on what the user selects (key pressed).I did not add byte/stop bit size configurations. We may need that.
    --- SBBSecho 3.14-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell@1:103/705 to Git commit to main/sbbs/master on Tue Feb 8 19:32:58 2022
    https://gitlab.synchro.net/main/sbbs/-/commit/32fa13dda8e2c1522d4255f8
    Modified Files:
    src/sexpots/sexpots.c
    Log Message:
    Don't call com_setup() unless an alternate [COM:x] section is loadedApparently com_setup() (which just calls tcsetattr()) will cause an attached modem (with a caller) to disconnect the caller. So you can't do this with a live modem. Leave the hack in for Nelgin's null modem cable setup, but you can't (apparently) support both 8N1 and 7E1 "callers" with a real modem (not surprisingly, for multiple reasons).
    --- SBBSecho 3.14-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell (on Windows)@1:103/705 to Git commit to main/sbbs/master on Mon Feb 6 11:55:16 2023
    https://gitlab.synchro.net/main/sbbs/-/commit/93cc268f1865ef6a7af2d983
    Modified Files:
    src/sexpots/sexpots.c
    Log Message:
    Add optional debug-level logging of all chars received over COM port/deviceSet Debug=true in the [com] section of sexpots.ini to enable this (and you'llneed to be logging debug-level message as well). For Nelgin.
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell (on Windows)@1:103/705 to Git commit to main/sbbs/master on Mon Feb 6 18:46:04 2023
    https://gitlab.synchro.net/main/sbbs/-/commit/a7b7daf1bc7bcd53c25e35db
    Modified Files:
    src/sexpots/sexpots.c
    Log Message:
    Fix printf format typo in previous commitThis should fix issue #509
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell (on Debian Linux)@1:103/705 to Git commit to main/sbbs/master on Tue Feb 7 20:45:21 2023
    https://gitlab.synchro.net/main/sbbs/-/commit/a2034ad01c3627976c3d1bcc
    Modified Files:
    src/sexpots/sexpots.c
    Log Message:
    [com] Debug will enable transmit debug log output (in addition to receive)Log the characters themselves of ASCII values (between 32 and 126) for comdebug log messages. Still a separate log message/line for every character(so very chatty/verbose).This fixes issue (feature request) #510
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell (on Debian Linux)@1:103/705 to Git commit to main/sbbs/master on Mon Jun 5 16:54:36 2023
    https://gitlab.synchro.net/main/sbbs/-/commit/f8c65bcf598afdbddf969b11
    Modified Files:
    src/sexpots/sexpots.c
    Log Message:
    Fixup the copy-pasted resolve_ip() with same fixes from main.cpp/mailsrvr.cDon't null-deref h_addr_list.Return in_addr_t instead of u_long.
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell (on Debian Linux)@1:103/705 to Git commit to main/sbbs/master on Mon Oct 16 17:53:57 2023
    https://gitlab.synchro.net/main/sbbs/-/commit/54a05b65148085247e667152
    Modified Files:
    src/sexpots/sexpots.c
    Log Message:
    Implement write-retry in modem_send()

    In attempt to address the "Error 11" (EAGAIN) error theat Nelgin sees when configuring some longer modem init strings on Linux.

    This is just a single retry (after a yield) after any modem command char
    send failure (for any reason), including the terminating carriage-return.

    See issue #662 to details.
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Charles Blackburn@1:103/705 to Rob Swindell (on Debian L on Tue Oct 17 07:36:11 2023
    Re: src/sexpots/sexpots.c
    By: Rob Swindell (on Debian Linux) to Git commit to main/sbbs/master on Mon Oct 16 2023 17:53:57

    https://gitlab.synchro.net/main/sbbs/-/commit/54a05b65148085247e667152 Modified Files:
    src/sexpots/sexpots.c
    Log Message:
    Implement write-retry in modem_send()

    In attempt to address the "Error 11" (EAGAIN) error theat Nelgin sees when configuring some longer modem init strings on Linux.
    This is just a single retry (after a yield) after any modem command char send failure (for any reason), including the terminating carriage-return.

    im guessing that it's the &W he has at the end of the init string. some modems (including mine for some reason) won't send an OK when they get that.

    as you can see in a previous message, mine is a lot longer than his but works fine. I think his EAGAIN could be a resource conflict in some form of buffer maybe. ie sending data too fast (not that it should matter).

    not knowing his setup i couldnt answer that, but i would put money on it being on a cheap usb/serial adapter :D

    charlie

    ---
    þ Synchronet þ The FBO BBS - IPV4/V6 - bbs.thefbo.us or bbs6.thefbo.us
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deucе@1:103/705 to Git commit to main/sbbs/master on Wed Feb 7 13:07:34 2024
    https://gitlab.synchro.net/main/sbbs/-/commit/0647142c0bc18ddcae3cacea
    Modified Files:
    src/sexpots/sexpots.c
    Log Message:
    Silence odd warning... I would expect these to be the same type
    save const, but apparently they're not. *shrug*
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deucе@1:103/705 to Git commit to main/sbbs/master on Wed Feb 21 07:17:58 2024
    https://gitlab.synchro.net/main/sbbs/-/commit/05dcd69ab61c73a50f5d2879
    Modified Files:
    src/sexpots/sexpots.c
    Log Message:
    On Win64, COM_HANDLE is bigger than a long.

    Use strtoll() to parse number (except when _BORLANDC_ of course)
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)