|
YAACC - UPNP Client and Server
|
A plain TCP connection to the control port of a server (default 1705). More...


Public Member Functions | |
| SocketTransport (InetAddress address, int port) | |
| Connects to an address that is known already (a discovered server, or a name that was resolved by the caller with a time limit): nothing is looked up. | |
| SocketTransport (String host, int port) | |
| Connection | open (int connectTimeoutMillis) throws IOException |
| Opens the connection. | |
Public Member Functions inherited from de.yaacc.snapcast.control.SnapcastTransport | |
Static Public Attributes | |
| static final int | DEFAULT_PORT = 1705 |
| The default port of the raw TCP control interface. | |
A plain TCP connection to the control port of a server (default 1705).
No TLS and no authentication: it assumes a trusted local network.
| de.yaacc.snapcast.control.SocketTransport.SocketTransport | ( | InetAddress | address, |
| int | port ) |
Connects to an address that is known already (a discovered server, or a name that was resolved by the caller with a time limit): nothing is looked up.
This is the constructor the app uses.
| Connection de.yaacc.snapcast.control.SocketTransport.open | ( | int | connectTimeoutMillis | ) | throws IOException |
Opens the connection.
A host name is resolved by the system resolver without a timeout of ours and close() can not end that wait; the calls are safe (they end at their deadline), the reader thread is held until the resolver returns. Prefer the address when it is known (a discovered server has one).
Implements de.yaacc.snapcast.control.SnapcastTransport.
Referenced by de.yaacc.snapcast.ResolvingTransport.open().
