TCP device type commands

Mpd 3.18 User Manual : Device Types : TCP device type commands
Previous: Netgraph device type commands
Next: UDP device type commands

## 5.3. TCP device type commands

Note: The TCP device type is currently broken and will not compile (it needs to be updated to support netgraph).

This chapter describes commands that are specific to TCP type links. These commands apply to the currently active link, and are only valid if the currently active link has type tcp.

`set tcp mode [ active | passive ]`

  Set the link for active or passive mode. In active mode, the local side initiates all connections. In passive mode, the local side waits for incoming connections (in a future revision bi-directional connections will be supported).

`set tcp self ipaddr [ port ]`

  Sets the local IP address and port for the TCP connection. If none is specified, any suitable local IP address is used.

`set tcp peer ipaddr [ port ]`

  Sets the peer IP address and port for the TCP connection. If none is specified, any peer may connect to us.

Mpd 3.18 User Manual : Device Types : TCP device type commands
Previous: Netgraph device type commands
Next: UDP device type commands