Macros | Functions | Variables
inet.c File Reference

Internet connection handling. More...

Go to the source code of this file.

Macros

#define MAIN_ERR_PREFIX   "INET: "
 Message prefix for INET module.
 
Socket option actions
#define INET_OPTS_CLEAR   0
 Remove socket options.
 
#define INET_OPTS_SET   1
 Add socket options.
 

Functions

int inet_connect (int *sd, int *af, const char *host, const char *service)
 Establish stream oriented connection. More...
 
int inet_set_rx_timeout (int sd, unsigned int rx_to)
 Try to set RX timeout for socket. More...
 
int inet_set_tx_timeout (int sd, unsigned int tx_to)
 Try to set TX timeout for socket. More...
 
void inet_close (int *sd)
 Close connection and destroy socket. More...
 

Variables

int inet_force_ipv4 = 0
 

Detailed Description

Internet connection handling.

Copyright (c) 2015-2022 by the developers. See the LICENSE file for details.

If nothing else is specified, functions return zero to indicate success and a negative value to indicate an error.

Definition in file inet.c.


Generated at 2024-04-27 using  doxygen