All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions
as_socket.h File Reference
#include <aerospike/as_error.h>
#include <citrusleaf/cf_clock.h>
#include <stddef.h>
#include <stdint.h>
+ Include dependency graph for as_socket.h:

Go to the source code of this file.

Functions

as_status as_socket_create_and_connect_nb (as_error *err, struct sockaddr_in *sa, int *fd)
 
as_status as_socket_create_nb (as_error *err, int *fd)
 
as_status as_socket_start_connect_nb (as_error *err, int fd, struct sockaddr_in *sa)
 
bool as_socket_validate (int fd, bool expect_empty)
 

Function Documentation

as_status as_socket_create_and_connect_nb ( as_error err,
struct sockaddr_in *  sa,
int *  fd 
)
private

Create non-blocking socket and connect.

as_status as_socket_create_nb ( as_error err,
int *  fd 
)
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  expect_empty 
)
private

Peek for socket connection status. Close socket if not connected.

Parameters
fdSocket identifier.
expect_emptyLog message if socket contains data.
Returns
if socket is connected.