• Filetransfer Protocols Update 1

    From dragonmaster@21:1/149 to All on Thu Nov 14 09:23:02 2019
    Hi.

    Here is an Update for the Download-Script of my Protocol.
    At the moment i call it "XTP 1.0" (Xionum Transfer Protocol Version 1.0)

    The download can now handle single files and exported messages correctly.

    #!/bin/sh
    # this script is for downloading files from the bbs
    # in mystic set the "Send Command" to ./download %7 %3

    NODE=$1
    FILENAME=$2
    if [ -f temp$NODE/file.lst ]
    then
    for FILE in $(cat temp$NODE/file.lst)
    do
    FILENA=$(basename $FILE)
    DATA=$(base64 -w 0 "$FILE")
    LENGTH=$(echo $DATA | wc -m)

    echo '$02' <- here you have to send the real byte
    echo $FILENA
    echo $LENGTH
    echo $DATA
    echo '$04' <- here you have to send the real byte
    echo "z 0 19200 bps 9600 cps 0 errors 0 1024 $FILENA -1" >> $DSZLOG
    done
    else
    DATA=$(base64 -w 0 "$2")
    LENGTH=$(echo $DATA | wc -m)
    FILENA=$(basename $FILENAME)

    echo '$02' <- here you have to send the real byte
    echo $FILENA
    echo $LENGTH
    echo $DATA
    echo '$04' <- here you have to send the real byte
    echo "z 0 19200 bps 9600 cps 0 errors 0 1024 $FILENA -1" >> $DSZLOG
    fi

    Best Regards,
    Dragonmaster

    --- Mystic BBS v1.12 A43 2019/03/03 (Raspberry Pi/32)
    * Origin: XIONUM-BBS (21:1/149)
  • From lemonlime@21:4/162 to dragonmaster on Thu Nov 14 09:20:41 2019
    Here is an Update for the Download-Script of my Protocol.
    At the moment i call it "XTP 1.0" (Xionum Transfer Protocol Version 1.0)

    The download can now handle single files and exported messages correctly.

    Nice! You should consider writing an RFC for your new protocol :) It would be cool to see it implemented in terminals and BBS apps.

    I'm looking forward to giving these a try.

    --- Mystic BBS v1.12 A43 2019/03/02 (Linux/64)
    * Origin: Stellar Darkness BBS, Toronto, Canada (21:4/162)