                 (dataWithoutTerminator as NSData).getBytes(&length, length: 4)
                 // ignore bytes 4-8 for now
                 DLog("BluepeerObject: got header, reading \(length) bytes...")
-                self.logDelegate?.didReadWrite("readBody")
+                self.logDelegate?.didReadWrite("readBodyAfterHeader")
                 sock.readData(toLength: length, withTimeout: Timeouts.body.rawValue, tag: DataTag.tag_BODY.rawValue)
             }
             

        }
    }
    
    open func disconnectSession() {
        // don't close serverSocket: expectation is that only stopAdvertising does this
        // loop through peers, disconenct all sockets

                        if inviteAccepted && peer.state == .awaitingAuth && sock.isConnected == true {
                            peer.state = .connected // SERVER becomes connected
                            // CONVENTION: SERVER sends CLIENT a single 0 to show connection has been accepted, since it isn't possible to send a header for a payload of size zero except here.
                            self.logDelegate?.didReadWrite("writeAuthAcceptance")
                            sock.write(Data.init(count: 1), withTimeout: Timeouts.header.rawValue, tag: DataTag.tag_WRITING.rawValue)
                            DLog("... accepted (by my delegate)")
                            self.dispatch_on_delegate_queue({
                                self.membershipRosterDelegate?.peerDidConnect?(.client, peer: peer)
                            })
                            self.logDelegate?.didReadWrite("readHeaderTerminator2")
                            self.scheduleNextKeepaliveTimer(peer) // NEW in 1.1: if the two sides open up a connection but no one says anything, make sure it stays open
                            sock.readData(to: self.headerTerminator, withTimeout: Timeouts.header.rawValue, tag: DataTag.tag_HEADER.rawValue)
                        } else {
                            self.logDelegate?.didReadWrite("writeAuthRejection!")
                            self.bailOn(socket: sock, peer: peer)
                            DLog("... rejected (by my delegate), or no longer connected")
                        }
                    })
