#include <unisock.h>

Public Member Functions | |
| bool | open (int listen_queue_size) |
| bool | connect (int max_attempts, time_t timeout) |
| int | read (void *buf, size_t min_size, size_t max_size, time_t timeout) |
| bool | write (void const *buf, size_t size, time_t timeout) |
| bool | is_ok () |
| bool | shutdown () |
| bool | close () |
| char * | get_peer_name () |
| void | get_error_text (char *buf, size_t buf_size) |
| socket_t * | accept () |
| bool | cancel_accept () |
| int | get_handle () |
| unix_socket (const char *address, socket_domain domain) | |
| unix_socket (int new_fd) | |
| ~unix_socket () | |
Static Public Attributes | |
| static char * | unix_socket_dir = SIPX_TMPDIR |
Protected Types | |
| enum | error_codes { ok = 0, not_opened = -1, bad_address = -2, connection_failed = -3, broken_pipe = -4, invalid_access_mode = -5 } |
Protected Attributes | |
| int | fd |
| int | errcode |
| char * | address |
| socket_domain | domain |
| bool | create_file |
enum error_codes [protected] |
| unix_socket | ( | const char * | address, | |
| socket_domain | domain | |||
| ) |
| unix_socket | ( | int | new_fd | ) |
| ~unix_socket | ( | ) |
| bool open | ( | int | listen_queue_size | ) |
| bool connect | ( | int | max_attempts, | |
| time_t | timeout | |||
| ) |
| int read | ( | void * | buf, | |
| size_t | min_size, | |||
| size_t | max_size, | |||
| time_t | timeout | |||
| ) | [virtual] |
Implements socket_t.
| bool write | ( | void const * | buf, | |
| size_t | size, | |||
| time_t | timeout | |||
| ) | [virtual] |
Implements socket_t.
| bool is_ok | ( | ) | [virtual] |
Implements socket_t.
| bool shutdown | ( | ) | [virtual] |
Implements socket_t.
| bool close | ( | ) | [virtual] |
Implements socket_t.
| char * get_peer_name | ( | ) | [virtual] |
Implements socket_t.
| void get_error_text | ( | char * | buf, | |
| size_t | buf_size | |||
| ) | [virtual] |
Implements socket_t.
| bool cancel_accept | ( | ) | [virtual] |
Implements socket_t.
| int get_handle | ( | ) | [virtual] |
Implements socket_t.
int fd [protected] |
int errcode [protected] |
char* address [protected] |
socket_domain domain [protected] |
bool create_file [protected] |
char * unix_socket_dir = SIPX_TMPDIR [static] |