nutclient_tcp_disconnect man page on DragonFly

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

LIBNUTCLIENT_TCP(3)		  NUT Manual		   LIBNUTCLIENT_TCP(3)

NAME
       libnutclient_tcp, nutclient_tcp_create_client,
       nutclient_tcp_is_connected, nutclient_tcp_disconnect,
       nutclient_tcp_reconnect, nutclient_tcp_set_timeout,
       nutclient_tcp_get_timeout - TCP protocol related function for Network
       UPS Tools high-level client access library

SYNOPSIS
       #include <nutclient.h>

       typedef NUTCLIENT_t NUTCLIENT_TCP_t;

       NUTCLIENT_TCP_t nutclient_tcp_create_client(const char* host, unsigned short port);
       int nutclient_tcp_is_connected(NUTCLIENT_TCP_t client);
       void nutclient_tcp_disconnect(NUTCLIENT_TCP_t client);
       int nutclient_tcp_reconnect(NUTCLIENT_TCP_t client);
       void nutclient_tcp_set_timeout(NUTCLIENT_TCP_t client, long timeout);
       long nutclient_tcp_get_timeout(NUTCLIENT_TCP_t client);

DESCRIPTION
       These functions allow to manage connections to upsd(8) using NUT TCP
       protocol.

       The nutclient_tcp_create_client() function create the NUTCLIENT_TCP_t
       context and intend to connect to upsd at host and port. The context
       must be freed by nutclient_destroy()

       host can be a sever name or a valid IPv4 or IPv6 adress like
       "localhost", "127.0.0.1" or "::1".

       port is a valid TCP port, genrally 3493.

       The nutclient_tcp_is_connected() function test if the connection is
       valid.

       The nutclient_tcp_disconnect() function force to disconnect the
       specified connection.

       The nutclient_tcp_reconnect() function force to reconnect a connection,
       disconnecting it if needed.

       The nutclient_tcp_set_timeout() function set the timeout duration for
       I/O operations.

       The nutclient_tcp_get_timeout() function retrieve the timeout duration
       for I/O operations.

       timeout values are specified in seconds, negatives values for blocking.

SEE ALSO
       libnutclient(3) libnutclient_general(3)

Network UPS Tools 2.7.3		  04/17/2015		   LIBNUTCLIENT_TCP(3)
[top]

List of man pages available for DragonFly

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