#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.
bool as_socket_validate |
( |
int |
fd, |
|
|
bool |
pipe |
|
) |
| |
|
private |
Peek for socket connection status. Close socket if not connected.
- Parameters
-
fd | Socket identifier. |
pipe | If true, do not log message if socket contains data and do not close fd. |
- Returns
- if socket is connected.