Spines

NAME 
       spines_init - sets the default Spines server for the library


SYNOPSIS
       #include "spines_lib.h"

       int spines_init(const struct sockaddr *serv_addr);

DESCRIPTION 
       spines_init defines the default Spines server that will
       be used in subsequent spines_socket() calls, unless
       otherwise specified.

       serv_addr represent the address of the Spines server.
       Currently, spines_init supports 3 options:
       (1) serv_addr points to a struct sockaddr_in* (family = AF_INET)
       (2) serv_addr points to a struct sockaddr_un* (family = AF_UNIX)
       (3) serv_addr is NULL, in which default is used.

       On Unix systems, the default (serv_addr == NULL) is to use IPC over
       Unix domain sockets. On Windows systems, the default behavior
       is to use a TCP connection (AF_INET, SOCK_STREAM) to the daemon's
       IP address based on a gethostbyname() function call.

RETURN VALUE
       -1 is returned if an error occurs; otherwise it returns 1