pydw

Check-in [c424043861]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:comment from "beretta42" on Github, dw_init response might be better set to 0, not echoing back client's value.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | master | trunk
Files: files | file ages | folders
SHA3-256:c424043861e8242d9e30f8c7874df0d23e0372b1f889dd0e9ee0f239ffad8c4a
User & Date: ajv-899-334-8894@vsta.org 2016-07-16 19:58:47
Context
2016-07-16
19:58
comment from "beretta42" on Github, dw_init response might be better set to 0, not echoing back client's value. Leaf check-in: c424043861 user: ajv-899-334-8894@vsta.org tags: master, trunk
02:14
Enable exception handling. Set up to actually break from one client and start serving the next. Add ^C handler so we can cleanly exit. check-in: 4f9e162437 user: ajv-899-334-8894@vsta.org tags: master, trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to dw.py.

   110    110   
   111    111   # DW Init
   112    112   def dwinit(conn):
   113    113       # Read their "abilities" byte; send it right back
   114    114       arg0 = conn.recv(1)
   115    115       print " DW abilities", arg0
   116    116   
   117         -    # Just echo back what they ask?
   118         -    # This kinda means we do DW4?
   119         -    conn.send(arg0)
          117  +    # The official DW client sends 0, so...
          118  +    conn.send(b'\x00')
   120    119   
   121    120   # No-op
   122    121   def nop(conn):
   123    122       return
   124    123   
   125    124   # Time
   126    125   def gettime(conn):