Revision 8, 1.6 kB
(checked in by phil, 15 years ago)
|
Added Examples etc. from CD
|
Line | |
---|
1 |
/****************************************************************** |
---|
2 |
***** ***** |
---|
3 |
***** Name: easyweb.h ***** |
---|
4 |
***** Ver.: 1.0 ***** |
---|
5 |
***** Date: 07/05/2001 ***** |
---|
6 |
***** Auth: Andreas Dannenberg ***** |
---|
7 |
***** HTWK Leipzig ***** |
---|
8 |
***** university of applied sciences ***** |
---|
9 |
***** Germany ***** |
---|
10 |
***** Func: header-file for easyweb.c ***** |
---|
11 |
***** ***** |
---|
12 |
******************************************************************/ |
---|
13 |
|
---|
14 |
#ifndef __EASYWEB_H |
---|
15 |
#define __EASYWEB_H |
---|
16 |
|
---|
17 |
const unsigned char GetResponse[] = // 1st thing our server sends to a client |
---|
18 |
{ |
---|
19 |
"HTTP/1.0 200 OK\r\n" // protocol ver 1.0, code 200, reason OK |
---|
20 |
"Content-Type: text/html\r\n" // type of data we want to send |
---|
21 |
"\r\n" // indicate end of HTTP-header |
---|
22 |
}; |
---|
23 |
|
---|
24 |
void InitOsc(void); // prototypes |
---|
25 |
void InitPorts(void); |
---|
26 |
void HTTPServer(void); |
---|
27 |
void InsertDynamicValues(void); |
---|
28 |
unsigned int GetAD0Val(void); |
---|
29 |
unsigned char *PWebSide; // pointer to webside |
---|
30 |
unsigned int HTTPBytesToSend; // bytes left to send |
---|
31 |
unsigned char HTTPStatus; // status byte |
---|
32 |
#define HTTP_SEND_PAGE 0x01 // help flag |
---|
33 |
|
---|
34 |
#endif |
---|
35 |
|
---|