27 #ifndef LOCAL_SOCKET_HH_
28 # define LOCAL_SOCKET_HH_
51 void writeto(
const std::string& str,
52 const std::string& filename);
58 std::string
read(
int timeout);
60 std::string
read(std::string& filename);
63 std::string
read(std::string& filename,
int timeout);
66 std::string
readn(
unsigned int size);
69 std::string
readn(
int timeout,
unsigned int size);
72 std::string
readn(std::string& filename,
unsigned int size);
76 std::string
readn(std::string& filename,
int timeout,
unsigned int size);
179 void init(
const std::string& filename);
190 int _bind(
const std::string& filename);
199 std::string
_read_line(
int socket, std::string& filename);
209 unsigned int pkg_size);
214 void _write_str(
int socket,
const std::string& str,
215 const std::string& filename)
const;
221 const std::string& filename)
const;