|
|
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:
irc | IRC info string for the stream. |
aim | AIM info string for the stream. |
icq | ICQ 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:
socket | socket connection to the server. |
password | password to the server. |
name | name 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? |
irc | IRC info string for the stream. |
aim | AIM info string for the stream. |
icq | ICQ info string for the stream. |
bufferDuration | duration of the BufferedSink buffer in seconds. |
Throws: Exception
inline
ShoutCast ( const ShoutCast & cs )
throw ( Exception ) | ShoutCast |
Copy constructor.
Parameters:
cs | the 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:
cs | the 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.