fsxNet Wiki

BBS Development & Resources

User Tools

Site Tools


tutorials:python_bbs:part_one

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
tutorials:python_bbs:part_one [2017/03/08 12:33]
apam
tutorials:python_bbs:part_one [2018/03/29 01:58] (current)
Line 110: Line 110:
  
         try:         try:
-            self.sendString(conn,​ "​Welcome to my BBS on Node %s" % (node))+            self.sendString(conn,​ "​Welcome to my BBS on Node %s" % (node + 1))
  
             while True:             while True:
Line 117: Line 117:
  
         except RuntimeError:​         except RuntimeError:​
-            print("​Node %s hung up..." % (node))+            print("​Node %s hung up..." % (node + 1))
  
-        print("​Node %s offline."​ % (node))+        print("​Node %s offline."​ % (node + 1))
         nodes[node] = False         nodes[node] = False
         conn.close()         conn.close()
Line 193: Line 193:
  
         try:         try:
-            self.sendString(conn,​ "​Welcome to my BBS on Node %s" % (node))+            self.sendString(conn,​ "​Welcome to my BBS on Node %s" % (node + 1))
  
             while True:             while True:
Line 199: Line 199:
  
         except RuntimeError:​         except RuntimeError:​
-            print("​Node %s hung up..." % (node))+            print("​Node %s hung up..." % (node + 1))
  
-        print("​Node %s offline."​ % (node))+        print("​Node %s offline."​ % (node + 1))
         nodes[node] = False         nodes[node] = False
         conn.close()         conn.close()
tutorials/python_bbs/part_one.1488976390.txt.gz ยท Last modified: 2018/03/29 01:58 (external edit)