- -( dyne // software :: culture :: events :: planet :: discussion :: museum \\ freaknet )- -
 
Main Page | Modules | Class Hierarchy | Class List | File List | Class Members | File Members

httpstream.h File Reference

#include <stdio.h>
#include <outchannels.h>

Go to the source code of this file.

Enumerations

enum  hstream { HS_MP3, HS_OGG, HS_NONE }

Functions

FILE * hopen (const char *url, const char *mode)
hstream stream_detect (const char *url)


Enumeration Type Documentation

enum hstream
 

Enumeration values:
HS_MP3 
HS_OGG 
HS_NONE 

Definition at line 27 of file httpstream.h.


Function Documentation

FILE* hopen const char *  url,
const char *  mode
 

fopen() syntax. If

Parameters:
url is an url, it will open the stream, strip the header and return a valid FILE*, otherwise it will return whatever fopen() returns.

Definition at line 415 of file httpstream.cpp.

hstream stream_detect const char *  url  ) 
 

Will open a connection to url, analyse header and close connection.

Definition at line 467 of file httpstream.cpp.