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);
bool readboundarytail(int sock)
Skip until the end of the boundary line.
Definition: mime.cpp:125
bool read_headers(int sock, std::map< std::string, std::string > &headers)
Read MIME headers.
Definition: mime.cpp:68
bool read_line(int sock, std::string &res)
Read a line from the file descriptor.
Definition: mime.cpp:37
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
wibble::ERegexp header_splitter
Definition: mime.h:35
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
Reader()
Definition: mime.cpp:32