Logo Search packages:      
Sourcecode: darkice version File versions

CastSink Class Reference

#include <CastSink.h>

Inheritance diagram for CastSink:

Sink Reporter Referable FileCast IceCast IceCast2 ShoutCast

List of all members.


Detailed Description

Data output to a ShoutCast / IceCast / etc. server This is an abstract class. A subclass should override at least the sendLogin() function.

Author:
Author
darkeye
Version:
Revision
1.8

Definition at line 62 of file CastSink.h.


Public Member Functions

virtual bool canWrite (unsigned int sec, unsigned int usec) throw ( Exception )
 CastSink (const CastSink &cs) throw ( Exception )
 CastSink (TcpSocket *socket, const char *password, unsigned int bitRate, const char *name=0, const char *url=0, const char *genre=0, bool isPublic=false, Sink *streamDump=0, unsigned int bufferDuration=10) throw ( Exception )
virtual void close (void) throw ( Exception )
unsigned int decreaseReferenceCount (void) throw ( Exception )
virtual void flush (void) throw ( Exception )
unsigned int getBitRate (void) const throw ()
unsigned int getBufferDuration (void) const throw ()
const char * getGenre (void) const throw ()
bool getIsPublic (void) const throw ()
const char * getName (void) const throw ()
const char * getPassword (void) const throw ()
unsigned int getReferenceCount (void) const throw ()
const char * getUrl (void) const throw ()
unsigned int increaseReferenceCount (void) throw ( Exception )
virtual bool isOpen (void) const throw ()
virtual bool open (void) throw ( Exception )
virtual CastSinkoperator= (const CastSink &cs) throw ( Exception )
virtual unsigned int write (const void *buf, unsigned int len) throw ( Exception )
virtual ~CastSink (void) throw ( Exception )

Static Public Member Functions

static std::ostream & getReportOutputStream (void) throw ()
static unsigned int getReportVerbosity (void) throw ()
template<class T, class U, class V, class W>
static void reportEvent (unsigned int verbosity, const T t, const U u, const V v, const W w) throw ()
template<class T, class U, class V>
static void reportEvent (unsigned int verbosity, const T t, const U u, const V v) throw ()
template<class T, class U>
static void reportEvent (unsigned int verbosity, const T t, const U u) throw ()
template<class T>
static void reportEvent (unsigned int verbosity, const T t) throw ()
static void setReportOutputStream (std::ostream &os) throw ()
static void setReportVerbosity (unsigned int verbosity) throw ()

Protected Member Functions

 CastSink (void) throw ( Exception )
SinkgetSink (void) const throw ()
TcpSocketgetSocket (void) const throw ()
virtual bool sendLogin (void)=0 throw ( Exception )

Private Member Functions

void init (TcpSocket *socket, Sink *streamDump, const char *password, unsigned int bitRate, const char *name, const char *url, const char *genre, bool isPublic, unsigned int bufferDuration) throw ( Exception )
void strip (void) throw ( Exception )

Private Attributes

unsigned int bitRate
unsigned int bufferDuration
Ref< BufferedSinkbufferedSink
char * genre
bool isPublic
char * name
char * password
Ref< TcpSocketsocket
Ref< SinkstreamDump
char * url

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

Generated by  Doxygen 1.6.0   Back to index