class ShoutCast

Class representing output to a ShoutCast server with icy login More...

Definition#include <ShoutCast.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 a ShoutCast server with icy login

char * irc

irc

[private]

char * aim

aim

[private]

char * icq

icq

[private]

void  init ( const char * irc, const char * aim, const char * icq )
throw ( Exception )

init

[private]

Initalize the object.

Parameters:
ircIRC info string for the stream.
aimAIM info string for the stream.
icqICQ info string for the stream.

Throws: Exception

Reimplemented from CastSink.

void  strip ( void )
throw ( Exception )

strip

[private]

De-initalize the object.

Throws: Exception

Reimplemented from CastSink.

inline  ShoutCast ( void )
throw ( Exception )

ShoutCast

[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  ShoutCast ( TcpSocket * socket, const char * password, unsigned int bitRate, const char * name = 0, const char * url = 0, const char * genre = 0, bool isPublic = false, const char * irc = 0, const char * aim = 0, const char * icq = 0, Sink * streamDump = 0, unsigned int bufferDuration = 10 )
throw ( Exception )

ShoutCast

Constructor.

Parameters:
socketsocket connection to the server.
passwordpassword to the server.
namename of the stream.
urlURL associated with the stream.
genregenre of the stream.
bitRatebitrate of the stream (e.g. mp3 bitrate).
isPublicis the stream public?
ircIRC info string for the stream.
aimAIM info string for the stream.
icqICQ info string for the stream.
bufferDurationduration of the BufferedSink buffer in seconds.

Throws: Exception

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

ShoutCast

Copy constructor.

Parameters:
csthe ShoutCast to copy.

inline  ~ShoutCast ( void )
throw ( Exception )

~ShoutCast

[virtual]

Destructor.

Throws: Exception

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

operator=

[virtual]

Assignment operator.

Parameters:
csthe ShoutCast to assign this to.

Returns: a reference to this ShoutCast.

Throws: Exception

Reimplemented from CastSink.

inline const char *  getIrc ( void )
throw ()

getIrc

[const]

Get the IRC info string for the stream.

Returns: the IRC info string for the stream.

inline const char *  getAim ( void )
throw ()

getAim

[const]

Get the AIM info string for the stream.

Returns: the AIM info string for the stream.

inline const char *  getIcq ( void )
throw ()

getIcq

[const]

Get the ICQ info string for the stream.

Returns: the ICQ info string for the stream.