Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qnet_unix_p.h File Reference

(7a308dccb5d425cfbbdbdcc8ce1545d0c66a2c76)

#include <QtNetwork/private/qtnetworkglobal_p.h>
#include "private/qcore_unix_p.h"
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
#include <arpa/inet.h>
#include <resolv.h>
Include dependency graph for qnet_unix_p.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define QT_SOCKOPTLEN_T   QT_SOCKLEN_T
#define QT_SOCKET_CONNECT   qt_safe_connect

Functions

static int qt_safe_socket (int domain, int type, int protocol, int flags=0)
static int qt_safe_accept (int s, struct sockaddr *addr, QT_SOCKLEN_T *addrlen, int flags=0)
static int qt_safe_listen (int s, int backlog)
static int qt_safe_connect (int sockfd, const struct sockaddr *addr, QT_SOCKLEN_T addrlen)
template<typename T>
static int qt_safe_ioctl (int sockfd, unsigned long request, T arg)
static int qt_safe_sendmsg (int sockfd, const struct msghdr *msg, int flags)
static int qt_safe_recvmsg (int sockfd, struct msghdr *msg, int flags)

Macro Definition Documentation

◆ QT_SOCKET_CONNECT

#define QT_SOCKET_CONNECT   qt_safe_connect

Definition at line 121 of file qnet_unix_p.h.

◆ QT_SOCKOPTLEN_T

#define QT_SOCKOPTLEN_T   QT_SOCKLEN_T

Definition at line 43 of file qnet_unix_p.h.

Function Documentation

◆ qt_safe_accept()

int qt_safe_accept ( int s,
struct sockaddr * addr,
QT_SOCKLEN_T * addrlen,
int flags = 0 )
inlinestatic

Definition at line 72 of file qnet_unix_p.h.

◆ qt_safe_connect()

int qt_safe_connect ( int sockfd,
const struct sockaddr * addr,
QT_SOCKLEN_T addrlen )
inlinestatic

Definition at line 108 of file qnet_unix_p.h.

◆ qt_safe_ioctl()

template<typename T>
int qt_safe_ioctl ( int sockfd,
unsigned long request,
T arg )
inlinestatic

Definition at line 134 of file qnet_unix_p.h.

◆ qt_safe_listen()

int qt_safe_listen ( int s,
int backlog )
inlinestatic

Definition at line 103 of file qnet_unix_p.h.

◆ qt_safe_recvmsg()

int qt_safe_recvmsg ( int sockfd,
struct msghdr * msg,
int flags )
inlinestatic

Definition at line 152 of file qnet_unix_p.h.

◆ qt_safe_sendmsg()

int qt_safe_sendmsg ( int sockfd,
const struct msghdr * msg,
int flags )
inlinestatic

Definition at line 139 of file qnet_unix_p.h.

◆ qt_safe_socket()

int qt_safe_socket ( int domain,
int type,
int protocol,
int flags = 0 )
inlinestatic

Definition at line 46 of file qnet_unix_p.h.