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)
 
int as_socket_validate (int fd)
 

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.

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.