#include <socket.hh>
Public Member Functions | |
void | connect (std::string const &to) |
int | read (void *buf, size_t size) const |
socket (int fd) | |
socket (Domain domain, Type type, std::string const &connect_to) | |
int | write (void const *buf, size_t size) const |
Friends | |
class | server_socket |
utilmm::socket::socket | ( | int | fd | ) |
utilmm::socket::socket | ( | Domain | domain, |
Type | type, | ||
std::string const & | connect_to | ||
) |
void utilmm::socket::connect | ( | std::string const & | to | ) |
int utilmm::socket::read | ( | void * | buf, |
size_t | size | ||
) | const |
Reads at most size
bytes in the specified buffer and returns the count of bytes actually read.
unix_error | raised if an error occured |
int utilmm::socket::write | ( | void const * | buf, |
size_t | size | ||
) | const |
Writes at most size
bytes in the specified buffer and returns the count of bytes actually written.
unix_error | raised if an error occured |
friend class server_socket [friend] |