Rudiments
apachehttpserverapi.h
1// Copyright (c) 1999-2018 David Muse
2// See the COPYING file for more information
3
4 ssize_t read(byte_t *buffer, size_t size);
5 ssize_t read(char *buffer, size_t length);
6 ssize_t read(char *character);
7 ssize_t read(wchar_t *buffer, size_t length);
8 ssize_t read(wchar_t *character);
9 ssize_t readUcs2(ucs2_t *buffer, size_t length);
10 ssize_t readUcs2(ucs2_t *character);
11 ssize_t read(int16_t *number);
12 ssize_t read(int32_t *number);
13 ssize_t read(int64_t *number);
14 ssize_t read(byte_t *character);
15 ssize_t read(uint16_t *number);
16 ssize_t read(uint32_t *number);
17 ssize_t read(uint64_t *number);
18 ssize_t read(float *number);
19 ssize_t read(double *number);
20
21 void initEnvironmentVariables();
22 const char *getEnvironmentVariable(const char *name);
23 uint64_t getEnvironmentVariableCount();
24 const char * const *getEnvironmentVariables();
25 const char * const *getEnvironmentValues();
26 bool setEnvironmentVariable(const char *name,
27 const char *value);
28 void updateEnvironmentVariables();
29
30 httpserverapi *sendStatusHeader(const char *string);
31 httpserverapi *sendHeader(const char *variable,
32 const char *value);
33 httpserverapi *sendHeader(const char *string);
34
35 ssize_t write(const byte_t *string, size_t size);
36 ssize_t write(const char *string);
37 ssize_t write(const char *string, size_t size);
38 ssize_t write(char ch);
39 ssize_t write(const wchar_t *string);
40 ssize_t write(const wchar_t *string, size_t size);
41 ssize_t write(wchar_t ch);
42 ssize_t writeUcs2(const ucs2_t *string);
43 ssize_t writeUcs2(const ucs2_t *string, size_t size);
44 ssize_t writeUcs2(ucs2_t ch);
45 ssize_t write(int16_t number);
46 ssize_t write(int32_t number);
47 ssize_t write(int64_t number);
48 ssize_t write(byte_t ch);
49 ssize_t write(uint16_t number);
50 ssize_t write(uint32_t number);
51 ssize_t write(uint64_t number);
52 ssize_t write(float number);
53 ssize_t write(double number);
54
55 ssize_t printfDelegate(const char *format, va_list *argp);
56 ssize_t printfDelegate(const wchar_t *format, va_list *argp);
57 ssize_t printfUcs2Delegate(const ucs2_t *format, va_list *argp);
58
61 return *this;
62 };
63
64 private:
65 ssize_t bufferedRead(void *buf, size_t count);
66 ssize_t bufferedRead(char *ch);
67
68 apachehttpserverapiprivate *pvt;
Definition apachehttpserverapi.h:20
Definition character.h:11
Definition httpserverapi.h:22