upscli_connect man page on IRIX

Man page or keyword search:  
man Server   31559 pages
apropos Keyword Search (all sections)
Output format
IRIX logo
[printable version]

UPSCLI_CONNECT(3)    Network UPS Tools (NUT)	UPSCLI_CONNECT(3)

NAME
       upscli_connect - Open a connection to a NUT upsd

SYNOPSIS
       #include <upsclient.h>

       int upscli_connect(UPSCONN *ups, const char *host, int port, int flags);

DESCRIPTION
       The  upscli_connect()  function takes the pointer ups to a
       UPSCONN state structure and opens a TCP connection to  the
       host on the given port.

       flags  may  be either UPSCLI_CONN_TRYSSL to try a SSL con-
       nection, or UPSCLI_CONN_REQSSL to require  a  SSL  connec-
       tion.

       If  SSL	mode  is required, this function will only return
       successfully if it is able to establish a  SSL  connection
       with  the server.  Possible reasons for failure include no
       SSL support on the server, and if upsclient itself  hasn't
       been compiled with SSL support.

       You  must  call	upscli_disconnect(3) when finished with a
       connection, or your program will slowly	leak  memory  and
       file descriptors.

RETURN VALUE
       The  upscli_connect() function modifies the UPSCONN struc-
       ture and returns 0 on success, or -1 if an error occurs.

SEE ALSO
       upscli_getvar(3),  upscli_getlist(3),  upscli_readline(3),
       upscli_sendline(3),    upscli_splitname(3),    upscli_str-
       error(3)

			 Wed Oct 16 2002	UPSCLI_CONNECT(3)
[top]

List of man pages available for IRIX

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net