webradio/station.h-Dateireferenz


Ausführliche Beschreibung

Radio station connect and disconnect routines.

 *
 * $Log$
 *
 * 

Definiert in Datei station.h.

gehe zum Quellcode dieser Datei

Datenstrukturen

struct  RADIOSTATION
 Station configuration structure. Mehr ...
struct  STATIONINFO
 Station information structure. Mehr ...

Server Protocol Types



#define PROTOCOL_TYPE_UNKNOWN   0
 Protocol not determined.
#define PROTOCOL_TYPE_SHOUTCAST   1
 Receiver is connected to a SHOUTcast server.
#define PROTOCOL_TYPE_ICECAST   2
 Receiver is connected to an Icecast server.

Server Content Types



#define CONTENT_TYPE_UNKNOWN   0
 Unknown content.
#define CONTENT_TYPE_MP3   1
 MP3 encoded audio data.
#define CONTENT_TYPE_OGG   2
 Ogg Vorbis encoded audio data.
#define CONTENT_TYPE_AACP   3
 AAC+ encoded audio data.

Makrodefinitionen

#define MAXNUM_STREAMS   32

Funktionen

STATIONINFOStationConnect (RADIOSTATION *radio, int sidx)
 Connect to a radio station.
void StationDisconnect (STATIONINFO *sip)
 Disconnect from a radio station.


Makro-Dokumentation

#define MAXNUM_STREAMS   32

Definiert in Zeile 53 der Datei station.h.

Wird benutzt von FavListLoad() und FavListSet().

#define PROTOCOL_TYPE_UNKNOWN   0

Protocol not determined.

Definiert in Zeile 62 der Datei station.h.

#define PROTOCOL_TYPE_SHOUTCAST   1

Receiver is connected to a SHOUTcast server.

Definiert in Zeile 64 der Datei station.h.

Wird benutzt von ShoutCastSetup().

#define PROTOCOL_TYPE_ICECAST   2

Receiver is connected to an Icecast server.

Definiert in Zeile 66 der Datei station.h.

Wird benutzt von ShoutCastSetup().

#define CONTENT_TYPE_UNKNOWN   0

Unknown content.

Definiert in Zeile 72 der Datei station.h.

Wird benutzt von ShoutCastSetup().

#define CONTENT_TYPE_MP3   1

MP3 encoded audio data.

Definiert in Zeile 74 der Datei station.h.

Wird benutzt von ShoutCastSetup().

#define CONTENT_TYPE_OGG   2

Ogg Vorbis encoded audio data.

Definiert in Zeile 76 der Datei station.h.

Wird benutzt von ShoutCastSetup().

#define CONTENT_TYPE_AACP   3

AAC+ encoded audio data.

Definiert in Zeile 78 der Datei station.h.

Wird benutzt von ShoutCastSetup().


Dokumentation der Funktionen

STATIONINFO* StationConnect ( RADIOSTATION scp,
int  sidx 
)

Connect to a radio station.

Parameter:
scp Pointer to the station configuration table entry.
sidx Stream index.
Rückgabe:
Pointer to a new station information structure. In case of an error, a NULL pointer is returned.

Definiert in Zeile 104 der Datei station.c.

Benutzt HttpSchemeParse(), HttpSchemeRelease(), LOG_STATION, LogMsg(), MAX_TCPBUF_SIZE, MAX_TCPRCV_WAIT, MAX_TCPSEG_SIZE, proxy, HTTP_PROXY::proxy_port, RADIOSTATION::rs_uri, HTTP_SCHEME::schm_host, HTTP_SCHEME::schm_path, HTTP_SCHEME::schm_portnum, STATIONINFO::si_header, STATIONINFO::si_scp, STATIONINFO::si_sock, StationDisconnect(), TcpGetHeaderLines(), TcpHostConnect() und TcpPutString().

Hier ist ein Graph der zeigt, was diese Funktion aufruft:

HttpSchemeParseHttpSchemeReleaseLogMsgStationDisconnectTcpGetHeaderLinesTcpHostConnectTcpPutString

void StationDisconnect ( STATIONINFO sip  ) 

Disconnect from a radio station.

Parameter:
sip Pointer to a station information structure.

Definiert in Zeile 83 der Datei station.c.

Benutzt LOG_STATION, LogMsg(), STATIONINFO::si_header, STATIONINFO::si_name, STATIONINFO::si_sock und TcpReleaseHeaderLines().

Hier ist ein Graph der zeigt, was diese Funktion aufruft:

LogMsgTcpReleaseHeaderLines


© 2008 by egnite GmbH - besuchen Sie www.ethernut.de