#include <aerospike/as_error.h>
#include <citrusleaf/cf_clock.h>
#include <stddef.h>
#include <stdint.h>
Go to the source code of this file.
as_status as_socket_create_and_connect_nb |
( |
as_error * |
err, |
|
|
struct sockaddr_in * |
sa, |
|
|
int * |
fd |
|
) |
| |
|
private |
Create non-blocking socket and connect.
int as_socket_create_nb |
( |
| ) |
|
|
private |
Create non-blocking socket.
as_status as_socket_start_connect_nb |
( |
as_error * |
err, |
|
|
int |
fd, |
|
|
struct sockaddr_in * |
sa |
|
) |
| |
|
private |
Connect to non-blocking socket.
int as_socket_validate |
( |
int |
fd | ) |
|
|
private |
Peek for socket connection status.
- Returns
- 0 : socket is connected, but no data available. > 0 : byte size of data available. < 0 : socket is invalid.