class IceCast

Class representing output to an IceCast server with x-audiocast login More...

Definition#include <IceCast.h>
InheritsCastSink [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Protected Methods

Private Methods

Private Members


Detailed Description

Class representing output to an IceCast server with x-audiocast login

char * mountPoint

mountPoint

[private]

char * remoteDumpFile

remoteDumpFile

[private]

char * description

description

[private]

void  init ( const char * mountPoint, const char * description, const char * remoteDumpFile )
throw ( Exception )

init

[private]

Initalize the object.

Parameters:
mountPointmount point of the stream on the server.
remoteDumpFileremote dump file (may be NULL).
descriptiondescription of the stream.

Throws: Exception

Reimplemented from CastSink.

void  strip ( void )
throw ( Exception )

strip

[private]

De-initalize the object.

Throws: Exception

Reimplemented from CastSink.

inline  IceCast ( void )
throw ( Exception )

IceCast

[protected]

Default constructor. Always throws an Exception.

Throws: Exception

bool  sendLogin ( void )
throw ( Exception )

sendLogin

[protected virtual]

Log in to the server using the socket avialable.

Returns: true if login was successful, false otherwise.

Throws: Exception

Reimplemented from CastSink.

inline  IceCast ( TcpSocket * socket, const char * password, const char * mountPoint, unsigned int bitRate, const char * name = 0, const char * description = 0, const char * url = 0, const char * genre = 0, bool isPublic = false, const char * remoteDumpFile = 0, Sink * streamDump = 0, unsigned int bufferDuration = 10 )
throw ( Exception )

IceCast

Constructor.

Parameters:
socketsocket connection to the server.
passwordpassword to the server.
mountPointmount point of the stream on the server.
remoteDumpFileremote dump file (may be NULL).
namename of the stream.
descriptiondescription of the stream.
urlURL associated with the stream.
genregenre of the stream.
bitRatebitrate of the stream (e.g. mp3 bitrate).
isPublicis the stream public?
bufferDurationduration of the BufferedSink buffer in seconds.

Throws: Exception

inline  IceCast ( const IceCast & cs )
throw ( Exception )

IceCast

Copy constructor.

Parameters:
csthe IceCast to copy.

inline  ~IceCast ( void )
throw ( Exception )

~IceCast

[virtual]

Destructor.

Throws: Exception

inline IceCast &  operator= ( const IceCast & cs )
throw ( Exception )

operator=

[virtual]

Assignment operator.

Parameters:
csthe IceCast to assign this to.

Returns: a reference to this IceCast.

Throws: Exception

Reimplemented from CastSink.

inline const char *  getMountPoint ( void )
throw ()

getMountPoint

[const]

Get the mount point of the stream on the server.

Returns: the mount point of the stream on the server.

inline const char *  getRemoteDumpFile ( void )
throw ()

getRemoteDumpFile

[const]

Get the remote dump file if any.

Returns: the remote dump file. May be NULL.

inline const char *  getDescription ( void )
throw ()

getDescription

[const]

Get the description of the stream.

Returns: the description of the stream.