Main Page
Related Pages
Modules
Classes
Files
File List
File Members
include
inet.h
1
#ifndef INET_H
2
#define INET_H 1
3
4
5
/*! \addtogroup INET */
6
/*! @{ */
7
8
9
/* ========================================================================== */
10
/* Constants */
11
12
/*! \name Error codes */
13
/*! @{ */
14
#define INET_ERR_UNSPEC -1
/*!< \brief Unspecified error */
15
#define INET_ERR_HNR -2
/*!< \brief Host name resolution failed */
16
#define INET_ERR_SNR -3
/*!< \brief Service name resolution failed */
17
#define INET_ERR_AF -4
/*!< \brief Address family not supported */
18
#define INET_ERR_SOCK -5
/*!< \brief Socket creation/configuration failed */
19
#define INET_ERR_CONN -6
/*!< \brief Connection failed */
20
#define INET_ERR_BADF -7
/*!< \brief Invalid socket descriptor */
21
#define INET_ERR_RX_TO -8
/*!< \brief Setting RX timeout failed */
22
#define INET_ERR_TX_TO -9
/*!< \brief Setting TX timeout failed */
23
/*! @} */
24
25
26
/* ========================================================================== */
27
/* Variables */
28
29
extern
int
inet_force_ipv4;
30
31
32
/*! @} */
33
34
35
/* ========================================================================== */
36
/* Function prototypes */
37
38
int
inet_connect
(
int
*,
int
*,
const
char
*,
const
char
*);
39
int
inet_set_rx_timeout
(
int
,
unsigned
int
);
40
int
inet_set_tx_timeout
(
int
,
unsigned
int
);
41
void
inet_close
(
int
*);
42
43
44
#endif
/* INET_H */
45
46
/* EOF */
inet_set_tx_timeout
int inet_set_tx_timeout(int, unsigned int)
Try to set TX timeout for socket.
Definition:
inet.c:477
inet_close
void inet_close(int *)
Close connection and destroy socket.
Definition:
inet.c:524
inet_set_rx_timeout
int inet_set_rx_timeout(int, unsigned int)
Try to set RX timeout for socket.
Definition:
inet.c:419
inet_connect
int inet_connect(int *, int *, const char *, const char *)
Establish stream oriented connection.
Definition:
inet.c:254
Generated at 2024-04-27 using