# Swoole\Connection\Iterator::offsetSet

(PECL swoole >= 1.9.0)

Swoole\Connection\Iterator::offsetSet — Assign a Connection to the specified offset.

### Beschreibung

public Swoole\Connection\Iterator::offsetSet(int `$offset`, mixed `$connection`): void

Assign a Connection to the specified offset.

### Parameter-Liste

`offset`

  The offset to assign the Connection to.

`connection`

  The connection to set.

### Rückgabewerte

`↑` and `↓` to navigate • `Enter` to select • `Esc` to close • `/` to open