---
name: "Gearman::Util"
section: "3pm"
platform: "linux"
package: "libgearman-client-perl"
version: "2.004.015-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Gearman::Util"
---

# Gearman::Util(3pm)

Utility functions for gearman distributed job system

## NAME

Gearman::Util - Utility functions for gearman distributed job system

## METHODS

### cmd\_name($num)

**return** cmd

### pack\_req\_command($key, $arg)

**return** request string

### pack\_res\_command($cmd, $arg)

**return** response string

### read\_res\_packet($sock, $err\_ref, $timeout)

**return** undef on closed socket or malformed packet

### read\_text\_status($sock, $err\_ref)

### send\_req($sock, $reqref)

### wait\_for\_readability($fileno, $timeout)

given a file descriptor number and a timeout,

wait for that descriptor to become readable

**return** 0 or 1 on if it did or not
