Small pull request for fix of error "Undefined variable: len" in BSDSocket.class.php - please review