Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
GUTENFETCH_SET_ACTIVE_SERVELibrary Functions MaGUTENFETCH_SET_ACTIVE_SERVER(3)

NAME
       gutenfetch_set_active_server  --	 This function sets the	default	Guten-
       berg server used	to satisfy  requests.	Instead	 of  taking  a	guten-
       fetch_server_t *	to set the server, it takes a NULL-terminated URL such
       as "ftp://ibiblio.org/pub/docs/books/gutenberg/".  The url should  con-
       tain  a	protocol supported by CURL a valid hostname and	a directory to
       the base	of the gutenberg texts.

SYNOPSIS
       #include	<gutenfetch.h>

       gutenfetch_error_t
       gutenfetch_set_active_server( char * );

DESCRIPTION
       This function returns a	gutenfetch_error_t  which  will	 be  equal  to
       GUTENFETCH_OK  on  success.  Otherwise the gutenfetch_error_to_string()
       function	can be used to determine what the error	was.  It  takes	 as  a
       parameter  a  NULL-terminated URL which references the server to	use to
       satisfy requests.

SEE ALSO
       libgutenfetch (3), gutenfetch_get_list_servers (3),  gutenfetch_get_ac-
       tive_server    (3),   gutenfetch_set_active_server_full	 (3),	guten-
       fetch_new_server	  (3),	 gutenfetch_duplicate_server	(3),	guten-
       fetch_free_server   (3),	  gutenfetch_free_servers  (3)	gutenfetch_er-
       ror_to_string (3)

COPYRIGHT
       libgutenfetch is	Copyright (C) 2004 Russell Francis.

       This program is free software; you can redistribute it and/or modify it
       under  the  terms of the	GNU General Public License as published	by the
       Free Software Foundation; either	version	2 of the License, or (at  your
       option) any later version.

       This  program  is  distributed  in the hope that	it will	be useful, but
       WITHOUT ANY  WARRANTY;  without	even  the  implied  warranty  of  MER-
       CHANTABILITY  or	FITNESS	FOR A PARTICULAR PURPOSE.  See the GNU General
       Public License for more details.

       You should have received	a copy of the GNU General Public License along
       with this program; if not, write	to the Free Software Foundation, Inc.,
       59 Temple Place,	Suite 330, Boston, MA  02111-1307  USA

BUGS
       Probably, if you	find them please take the time to let  me  know	 about
       them by filling out a bug report	at the following URL.

       http://www.sourceforge.net/tracker/?group_id=104733&func=browse

AUTHORS
       Russell Francis <johntabularasa@users.sf.net>

libgutenfetch 1.1		 11 July 2004  GUTENFETCH_SET_ACTIVE_SERVER(3)

NAME | SYNOPSIS | DESCRIPTION | SEE ALSO | COPYRIGHT | BUGS | AUTHORS

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=gutenfetch_set_active_server&sektion=3&manpath=FreeBSD+12.2-RELEASE+and+Ports>

home | help