(address)
| 53 | # Bitfield |
| 54 | |
| 55 | def getBitfield(address): |
| 56 | # bitfield of features supported by me (see the wiki). |
| 57 | bitfield = 0 |
| 58 | # send ack |
| 59 | if not BMConfigParser().safeGetBoolean(address, 'dontsendack'): |
| 60 | bitfield |= BITFIELD_DOESACK |
| 61 | return pack('>I', bitfield) |
| 62 | |
| 63 | def checkBitfield(bitfieldBinary, flags): |
| 64 | bitfield, = unpack('>I', bitfieldBinary) |
nothing calls this directly
no test coverage detected