YAACC - UPNP Client and Server
Loading...
Searching...
No Matches
de.yaacc.snapcast.control.SocketTransport Class Reference

A plain TCP connection to the control port of a server (default 1705). More...

Inheritance diagram for de.yaacc.snapcast.control.SocketTransport:
Inheritance graph
Collaboration diagram for de.yaacc.snapcast.control.SocketTransport:
Collaboration graph

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.
 

Detailed Description

A plain TCP connection to the control port of a server (default 1705).

No TLS and no authentication: it assumes a trusted local network.

Constructor & Destructor Documentation

◆ SocketTransport()

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.

Member Function Documentation

◆ open()

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().

Here is the caller graph for this function:

The documentation for this class was generated from the following file: