Data Structures | |
struct | clientGlobalStruct |
struct | w3Mail |
struct | w3URI |
struct | w3ClientConnection |
struct | w3Document |
Defines | |
#define | true 1 |
#define | false 0 |
#define | CR 13 |
#define | LF 10 |
Typedefs | |
typedef int | boolean |
Functions | |
void | w3ClientInit () |
boolean | w3ClientConnect (w3ClientConnection *con) |
boolean | w3ClientGetDocument (w3Document *doc) |
boolean | w3ClientDisconnect (w3ClientConnection *con) |
boolean | w3ClientGetImagePath (char *uriString, boolean withoutHostname) |
boolean | w3ClientDocToFile (const char *uriString, const char *filename, int port) |
boolean | w3ClientDocToFileMT (const char *uriString, const char *filename, int port) |
boolean | w3ClientJoinAllThreads () |
boolean | w3ClientDestroyAllThreads () |
boolean | w3SendData (const void *data, size_t size, int sock) |
Send data through a connection. | |
void * | w3ReceiveData (unsigned int *size, int sock) |
Receive data through a connection. | |
void | w3Error (const char *message) |
w3Mail * | w3CreateMail (char *rcpt, char *sender, char *data) |
boolean | w3DestroyMail (w3Mail *mail) |
boolean | w3SendMail (w3Mail *mail, const char *mailer, int port) |
boolean | w3SendMailFile (const char *path) |
char * | composeString (char *str1, char *str2) |
char * | copyString (char *str) |
boolean | w3ParseURI (const char *uristr, w3URI *uri) |
|
|
|
|
|
|
|
|
|
|
|
Concatenates
|
|
Copies
|
|
Sets up a connection to
|
|
Kills all pending threads and frees the taken memory. |
|
Closes the connection
|
|
Retrieves the URI described in uriString to file filename. Also retrieves all images using the lexical analyzer for images (img.lex). The html file is stored in |
|
This is not supporting the cache structure yet. It is not maintained since it is not yet needed for the assignment in CNS. Opens a thread and returns immediately, without joining the thread. Use w3ClientJoin- od DestroyAllThreads () to join them. Be sure to always call one of the latter two to free the memory used by the thread structures, as soon as you have no more threads pending. |
|
Gets a document described by
|
|
|
|
Initialization of global data structures. Call this before doing anything with the client functions ! |
|
Joins all pending threads and frees the taken memory. |
|
Takes recipient, sender and mail body and allocates a new w3Mail structure of it. |
|
Destroys the given mail. |
|
Prints an error message. |
|
Parses the URI given in |
|
Receive data through a connection.
Receives data from
|
|
Send data through a connection.
Sends data in
|
|
Sends the given mail to the SMTP server given by |
|
Sends the file |