Go to the documentation of this file. 1 #ifndef WIBBLE_NET_MIME_H
2 #define WIBBLE_NET_MIME_H
51 bool read_line(
int sock, std::string& res);
59 bool read_headers(
int sock, std::map<std::string, std::string>& headers);
69 bool read_until_boundary(
int sock,
const std::string& boundary, std::ostream& out,
size_t max=0);
Iterator< typename I::value_type > iterator(I i)
Definition: iterator.h:123
bool read_until_boundary(int sock, const std::string &boundary, std::ostream &out, size_t max=0)
Read until boundary is found, sending data to the given ostream.
Definition: mime.cpp:159
size_t count(List l)
Definition: list.h:341
bool read_headers(int sock, std::map< std::string, std::string > &headers)
Read MIME headers.
Definition: mime.cpp:68
bool readboundarytail(int sock)
Skip until the end of the boundary line.
Definition: mime.cpp:125
bool match(const std::string &str, int flags=0)
Definition: regexp.cpp:74
wibble::ERegexp header_splitter
Definition: mime.h:35
Reader()
Definition: mime.cpp:32
bool read_line(int sock, std::string &res)
Read a line from the file descriptor.
Definition: mime.cpp:37
Base class for system exceptions.
Definition: exception.h:396
std::string trim(const std::string &str, const FUN &classifier)
Return the substring of 'str' without all leading and trailing characters for which 'classifier' retu...
Definition: string.h:187
std::string tolower(const std::string &str)
Convert a string to lowercase.
Definition: string.h:238
bool discard_until_boundary(int sock, const std::string &boundary)
Read until boundary is found, sending data to the given ostream.
Definition: mime.cpp:192
Exception thrown when some consistency check fails.
Definition: exception.h:254