|
|
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:
mountPoint | mount point of the stream on the server. |
remoteDumpFile | remote dump file (may be NULL). |
description | description 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:
socket | socket connection to the server. |
password | password to the server. |
mountPoint | mount point of the stream on the server. |
remoteDumpFile | remote dump file (may be NULL). |
name | name of the stream. |
description | description of the stream. |
url | URL associated with the stream. |
genre | genre of the stream. |
bitRate | bitrate of the stream (e.g. mp3 bitrate). |
isPublic | is the stream public? |
bufferDuration | duration of the BufferedSink buffer in seconds. |
Throws: Exception
inline
IceCast ( const IceCast & cs )
throw ( Exception ) | IceCast |
Copy constructor.
Parameters:
cs | the 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:
cs | the 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.