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:
+ This graph shows which files directly or indirectly include this file:

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)
 
int as_socket_create_nb ()
 
as_status as_socket_start_connect_nb (as_error *err, int fd, struct sockaddr_in *sa)
 
bool as_socket_validate (int fd, bool pipe)
 

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.

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
fdSocket identifier.
pipeIf true, do not log message if socket contains data and do not close fd.
Returns
if socket is connected.