• how to?

    From michael2@21:2/145 to All on Monday, October 29, 2018 14:05:22
    how would one check for what type of connection the user is using?

    I want to present options based on whether they are telnet,ssh or rlogin
    I did not see any variables related to connection type

    Thanks,

    Michael2

    --- Mystic BBS v1.12 A39 2018/04/21 (Linux/64)
    * Origin: Mike's Mansion - fluxcap.dynv6.net:2323 (21:2/145)
  • From Avon@21:1/101 to michael2 on Tuesday, October 30, 2018 20:02:38
    On 10/29/18, michael2 pondered and said...

    how would one check for what type of connection the user is using?

    I want to present options based on whether they are telnet,ssh or rlogin
    I did not see any variables related to connection type

    I'm not sure this is a way as yet. I had a look but could only see refs in
    the docs for menu commands that have switches for various outbound connection types called from within Mystic..

    Asides how Mystic can display ANSI and ASCII menus based on auto detection
    I'm not seeing anything that offers options (menus or otherwise) based on server type connection. Hmm

    --- Mystic BBS v1.12 A39 2018/04/21 (Windows/32)
    * Origin: Agency BBS | Dunedin, New Zealand | agency.bbs.nz (21:1/101)
  • From michael2@21:2/145 to Avon on Tuesday, October 30, 2018 13:07:50
    how would one check for what type of connection the user is using?

    I want to present options based on whether they are telnet,ssh or rlo I did not see any variables related to connection type

    I'm not sure this is a way as yet. I had a look but could only see refs
    in the docs for menu commands that have switches for various outbound connection types called from within Mystic..

    Asides how Mystic can display ANSI and ASCII menus based on auto
    detection I'm not seeing anything that offers options (menus or
    otherwise) based on server type connection. Hmm


    I was thinking/wondering maybe an mpl script could gather the info,and
    perhaps generate a variable that could be read or build menus from within an mpl ???

    Michael2

    --- Mystic BBS v1.12 A39 2018/04/21 (Linux/64)
    * Origin: Mike's Mansion - fluxcap.dynv6.net:2323 (21:2/145)
  • From bcw142@21:1/145 to michael2 on Friday, November 09, 2018 07:55:52
    On 10/29/18, michael2 said the following...

    how would one check for what type of connection the user is using?

    The information your looking for is in CALLERS.DAT I believe, look under NewRecHistory below:

    (* CALLERS.DAT holds information on the last ten callers to the BBS. This *)
    (* file is always 10 records long with the most recent caller being the *)
    (* 10th record. *)

    RecLastOn = Record // CALLERS.DAT
    DateTime : LongInt;
    NewUser : Boolean;
    PeerIP : String[15];
    PeerHost : String[50];
    Node : Byte;
    CallNum : LongInt;
    Handle : String[30];
    City : String[25];
    Address : String[30];
    Gender : Char;
    EmailAddr : String[35];
    UserInfo : String[30];
    OptionData : Array[1..10] of String[60];
    Reserved : Array[1..53] of Byte;
    End;

    RecHistory = Record
    Date : LongInt;
    Emails : Word;
    Posts : Word;
    Downloads : Word;
    Uploads : Word;
    DownloadKB : LongInt;
    UploadKB : LongInt;
    Calls : LongInt;
    NewUsers : Word;
    Telnet : Word;
    FTP : Word;
    POP3 : Word;
    SMTP : Word;
    NNTP : Word;
    HTTP : Word;
    Hourly : Array[0..23] of Byte;
    Reserved : Array[1..2] of Byte;
    End;

    NewRecHistory = Record
    Date : Cardinal;
    Emails : Word;
    Posts : Word;
    Downloads : Word;
    Uploads : Word;
    DownloadKB : Cardinal;
    UploadKB : Cardinal;
    Calls : Word;
    NewUsers : Word;
    TELNET : Word;
    RLOGIN : Word;
    SSH : Word;
    FTP : Word;
    POP3 : Word;
    SMTP : Word;
    NNTP : Word;
    HTTP : Word;
    BINKP : Word;
    Hourly : Array[0..23] of Byte;
    Reserved : Array[1..10] of Byte;
    End;

    So anything that can read the CALLERS.DAT can get it; MPL, Python, whatever.

    --- Mystic BBS v1.12 A39 2018/04/21 (Raspberry Pi/32)
    * Origin: Mystic Pi BBS bcw142.zapto.org (21:1/145)
  • From michael2@21:2/145 to bcw142 on Friday, November 09, 2018 07:41:13
    On 11/09/18, bcw142 said the following...

    On 10/29/18, michael2 said the following...

    how would one check for what type of connection the user is using?

    The information your looking for is in CALLERS.DAT I believe, look under NewRecHistory below:

    Thank you for that, now that means I have to try to get the rusty brain
    working on how to read it ...lol

    Michael2

    --- Mystic BBS v1.12 A39 2018/04/21 (Linux/64)
    * Origin: Mike's Mansion - fluxcap.dynv6.net:2323 (21:2/145)