17.19. Data Definitions for libQtNetwork

This section defines global identifiers and their values that are associated with interfaces contained in libQtNetwork. These definitions are organized into groups that correspond to system headers. This convention is used as a convenience for the reader, and does not imply the existence of these headers, or their content. Where an interface is defined as requiring a particular system header file all of the data definitions for that system header file presented here shall be in effect.

This section gives data definitions to promote binary application portability, not to repeat source interface definitions available elsewhere. System providers and application developers should use this ABI to supplement - not to replace - source interface definition specifications.

This specification uses the ISO C (1999) C Language as the reference programming language, and data definitions are specified in ISO C format. The C language is used here as a convenient notation. Using a C language description of these data objects does not preclude their use by other programming languages.

17.19.1. QtNetwork/qabstractsocket.h


class QAbstractSocket;
enum _ZN15QAbstractSocket10SocketTypeE {
    UnknownSocketType = -1,
    TcpSocket = 0,
    UdpSocket = 1
};
enum _ZN15QAbstractSocket20NetworkLayerProtocolE {
    UnknownNetworkLayerProtocol = -1,
    IPv4Protocol = 0,
    IPv6Protocol = 1
};
enum _ZN15QAbstractSocket11SocketErrorE {
    UnknownSocketError = -1,
    ConnectionRefusedError = 0,
    RemoteHostClosedError = 1,
    HostNotFoundError = 2,
    SocketAccessError = 3,
    SocketResourceError = 4,
    SocketTimeoutError = 5,
    DatagramTooLargeError = 6,
    NetworkError = 7,
    AddressInUseError = 8,
    SocketAddressNotAvailableError = 9,
    UnsupportedSocketOperationError = 10
};
enum _ZN15QAbstractSocket11SocketStateE {
    UnconnectedState = 0,
    Idle = 0,
    HostLookupState = 1,
    HostLookup = 1,
    ConnectingState = 2,
    Connecting = 2,
    Connected = 3,
    Connection = 3,
    ConnectedState = 3,
    BoundState = 4,
    ListeningState = 5,
    Closing = 6,
    ClosingState = 6
};
enum _ZN15QAbstractSocket5ErrorE {
    ErrSocketRead = -1,
    ErrConnectionRefused = 0,
    ErrHostNotFound = 2
};
typedef enum _ZN15QAbstractSocket11SocketStateE {
    UnconnectedState = 0,
    Idle = 0,
    HostLookupState = 1,
    HostLookup = 1,
    ConnectingState = 2,
    Connecting = 2,
    Connected = 3,
    Connection = 3,
    ConnectedState = 3,
    BoundState = 4,
    ListeningState = 5,
    Closing = 6,
    ClosingState = 6
} QAbstractSocket::State;

17.19.2. QtNetwork/qftp.h


class QFtp;
enum _ZN4QFtp5StateE {
    Unconnected = 0,
    HostLookup = 1,
    Connecting = 2,
    Connected = 3,
    LoggedIn = 4,
    Closing = 5
};
enum _ZN4QFtp5ErrorE {
    NoError = 0,
    UnknownError = 1,
    HostNotFound = 2,
    ConnectionRefused = 3,
    NotConnected = 4
};
enum _ZN4QFtp7CommandE {
    None = 0,
    SetTransferMode = 1,
    SetProxy = 2,
    ConnectToHost = 3,
    Login = 4,
    Close = 5,
    List = 6,
    Cd = 7,
    Get = 8,
    Put = 9,
    Remove = 10,
    Mkdir = 11,
    Rmdir = 12,
    Rename = 13,
    RawCommand = 14
};
enum _ZN4QFtp12TransferModeE {
    Active = 0,
    Passive = 1
};
enum _ZN4QFtp12TransferTypeE {
    Binary = 0,
    Ascii = 1
};

17.19.3. QtNetwork/qhostaddress.h


class QIPv6Address;
typedef class QIPv6AddressQ_IPV6ADDR;
class QHostAddress;
enum _ZN12QHostAddress14SpecialAddressE {
    Null = 0,
    Broadcast = 1,
    LocalHost = 2,
    LocalHostIPv6 = 3,
    Any = 4,
    AnyIPv6 = 5
};

17.19.4. QtNetwork/qhostinfo.h


class QHostInfo;
enum _ZN9QHostInfo13HostInfoErrorE {
    NoError = 0,
    HostNotFound = 1,
    UnknownError = 2
};

17.19.5. QtNetwork/qhttp.h


class QHttpHeader;
class QHttpResponseHeader;
class QHttpRequestHeader;
class QHttp;
enum _ZN5QHttp5StateE {
    Unconnected = 0,
    HostLookup = 1,
    Connecting = 2,
    Sending = 3,
    Reading = 4,
    Connected = 5,
    Closing = 6
};
enum _ZN5QHttp5ErrorE {
    NoError = 0,
    UnknownError = 1,
    HostNotFound = 2,
    ConnectionRefused = 3,
    UnexpectedClose = 4,
    InvalidResponseHeader = 5,
    WrongContentLength = 6,
    Aborted = 7
};

17.19.6. QtNetwork/qnetworkproxy.h


class QNetworkProxy;
enum _ZN13QNetworkProxy9ProxyTypeE {
    DefaultProxy = 0,
    Socks5Proxy = 1,
    NoProxy = 2
};

17.19.7. QtNetwork/qtcpserver.h


class QTcpServer;

17.19.8. QtNetwork/qtcpsocket.h


typedef enum QtValidLicenseForNetworkModule QtNetworkModule;
class QTcpSocket;

17.19.9. QtNetwork/qudpsocket.h


class QUdpSocket;
enum _ZN10QUdpSocket8BindFlagE {
    DefaultForPlatform = 0,
    ShareAddress = 1,
    DontShareAddress = 2,
    ReuseAddressHint = 4
};
class QFlags < QUdpSocket::BindFlag >;
typedef class QFlags < QUdpSocket::BindFlag > QUdpSocket::BindMode;

17.19.10. QtNetwork/qurlinfo.h


class QUrlInfo;
enum _ZN8QUrlInfo14PermissionSpecE {
    ExeOther = 1,
    WriteOther = 2,
    ReadOther = 4,
    ExeGroup = 8,
    WriteGroup = 16,
    ReadGroup = 32,
    ExeOwner = 64,
    WriteOwner = 128,
    ReadOwner = 256
};