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

5.3. TCP device type commands

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.

set tcp peer ipaddr [ port ]

Sets the peer IP address and port for the TCP connection.


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