YAACC - UPNP Client and Server
Loading...
Searching...
No Matches
de.yaacc.snapcast.feed.FeedConnection Interface Reference

One TCP connection that the feed writes to, or a fake in a test. More...

Inheritance diagram for de.yaacc.snapcast.feed.FeedConnection:
Inheritance graph
Collaboration diagram for de.yaacc.snapcast.feed.FeedConnection:
Collaboration graph

Classes

interface  Factory
 Opens connections. More...
 

Public Member Functions

void write (byte[] data, int offset, int length) throws IOException
 Writes all the bytes; blocks while the peer does not read.
 
void close ()
 Closes the connection; safe to call twice and from another thread.
 

Detailed Description

One TCP connection that the feed writes to, or a fake in a test.

Member Function Documentation

◆ close()

void de.yaacc.snapcast.feed.FeedConnection.close ( )

Closes the connection; safe to call twice and from another thread.

Implemented in de.yaacc.snapcast.feed.SocketFeedConnection.

◆ write()

void de.yaacc.snapcast.feed.FeedConnection.write ( byte[] data,
int offset,
int length ) throws IOException

Writes all the bytes; blocks while the peer does not read.

Another thread's close() ends the wait.

Implemented in de.yaacc.snapcast.feed.SocketFeedConnection.


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