• Questions about sockets

    From Rich Lawrence@1:2320/100 to All on Wed Dec 7 10:47:00 2016
    Howde all!

    So I am working on a CNet BBS clone written in Python, and I have a question about sockets..

    *I know from some of the online tutorials that I have watched, that you can allow a number of connections. But in the instance of a BBS with say 5 nodes, so 5 telnet connections, which connection is for which node? Os there a way
    to specify that connection 1 is for node 1, and so on?

    *Zmodem file transfers. With some of the test code I wrote, I was using a telnet server that someone else wrote, and it is in C++ i believe, so I can't follow it to well. But it allowed me to transfer files with ZModem just like any other BBS. How would I accommodate a file transfer like that? Would a
    basic socket connection be able to just work? Or would I have to do something else to make it usable?

    I am aware I may not have expressed myself clearly, as I'm still new to the whole thing with Python. But to me it seems very easy to pick up and learn. Just understanding is the main problem I have.. LOL

    Thanks!

    --- Mystic BBS v1.12 A31 (Linux)
    # Origin: Radio Freqs & Geeks BBS - Albany, NY (FN32DO) (1:267/518)
    * Origin: LiveWire BBS - Synchronet - LiveWireBBS.com (1:2320/100)
  • From Sergey Dorofeev@1:2320/100 to Rich Lawrence on Fri Dec 9 19:58:40 2016
    Hello Rich,

    orig.message to echo PYTHON on 07 Dec 16 10:42:00
    I am aware I may not have expressed myself clearly, as I'm still new to the whole thing with Python. But to me it seems very easy to pick up and learn. Just understanding is the main problem I have.. LOL

    Did not understand all, but if you have to handle multiple connections, you must or run separate process for each connection, or maintain yourself datablock with handle of each connection and all related context (caller, node number, active requests etc). In first case you can use just send/recv for exchange, in second - something more complicated like select or something.

    Sergey

    ... vim
    --- PyFTN
    # Origin: fluid.fidoman.ru (2:5020/12000)
    * Origin: LiveWire BBS - Synchronet - LiveWireBBS.com (1:2320/100)