def flush(sock: socket) -> bool: Logger.addHost(*sock.getpeername(), 'attempts to flush file system') FS.Flush() space = FS.GetFreeSpace() Logger.addHost(*sock.getpeername(), 'has flushed file system') SendULong(sock, space) return False
def locate(sock: socket) -> bool: SendStr(sock, PublicIP) SendULong(sock, FS.GetFreeSpace()) return False