The FreeRADIUS server $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
Loading...
Searching...
No Matches
iovec.h
Go to the documentation of this file.
1#pragma once
2/*
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation; either version 2, or (at your option)
6 * any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program; if not, write to the Free Software Foundation,
15 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16 */
17
18/** Structures and functions for parsing, printing, masking and retrieving IP addresses
19 *
20 * @file src/lib/util/inet.h
21 *
22 * @author Arran Cudbard-Bell (a.cudbardb@freeradius.org)
23 * @copyright 2023 Arran Cudbard-Bell (a.cudbardb@freeradius.org)
24 */
25RCSIDH(iovec_h, "$Id: 43012ed109a73db8773e952e47d7481b4d5569e6 $")
26
27#include <freeradius-devel/util/dbuff.h>
28#include <freeradius-devel/util/time.h>
29#include <unistd.h>
30#include <sys/uio.h>
31
32#ifdef __cplusplus
33extern "C" {
34#endif
35
36fr_slen_t fr_concatv(fr_dbuff_t *out, struct iovec vector[], int iovcnt);
37ssize_t fr_writev(int fd, struct iovec vector[], int iovcnt, fr_time_delta_t timeout);
38
39#ifdef __cplusplus
40}
41#endif
#define RCSIDH(h, id)
Definition build.h:484
ssize_t fr_writev(int fd, struct iovec vector[], int iovcnt, fr_time_delta_t timeout)
Write out a vector to a file descriptor.
Definition iovec.c:68
fr_slen_t fr_concatv(fr_dbuff_t *out, struct iovec vector[], int iovcnt)
Concatenate an iovec into a dbuff.
Definition iovec.c:38
long int ssize_t
ssize_t fr_slen_t
A time delta, a difference in time measured in nanoseconds.
Definition time.h:80
static size_t char ** out
Definition value.h:997