# `ExCEP.Gateway.DualChannel`

Coordinates both CEP Northbound channels for an Edge Gateway:
- Management Channel (TCP 9901)
- Business Channel (TCP 9902)

# `business`

```elixir
@spec business(GenServer.server()) :: pid()
```

Returns the Business channel `ExCEP.Gateway.Client` pid.

# `channels`

```elixir
@spec channels(GenServer.server()) :: {pid(), pid()}
```

Returns `{mgmt_pid, biz_pid}`.

# `child_spec`

Returns a specification to start this module under a supervisor.

See `Supervisor`.

# `close`

```elixir
@spec close(GenServer.server()) :: :ok
```

Closes both channels.

# `connect`

```elixir
@spec connect(GenServer.server()) :: :ok | {:error, term()}
```

Connects both Management and Business channels.

# `management`

```elixir
@spec management(GenServer.server()) :: pid()
```

Returns the Management channel `ExCEP.Gateway.Client` pid.

# `start_link`

```elixir
@spec start_link(keyword()) :: GenServer.on_start()
```

---

*Consult [api-reference.md](api-reference.md) for complete listing*
