16.15. 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.

16.15.1. QtNetwork/qabstractsocket.h


class QAbstractSocket;
enum N15QAbstractSocket10SocketTypeE {
    UnknownSocketType,
    TcpSocket,
    UdpSocket
};
enum N15QAbstractSocket20NetworkLayerProtocolE {
    UnknownNetworkLayerProtocol,
    IPv4Protocol,
    IPv6Protocol
};
enum N15QAbstractSocket11SocketErrorE {
    UnknownSocketError,
    ConnectionRefusedError,
    RemoteHostClosedError,
    HostNotFoundError,
    SocketAccessError,
    SocketResourceError,
    SocketTimeoutError,
    DatagramTooLargeError,
    NetworkError,
    AddressInUseError,
    SocketAddressNotAvailableError,
    UnsupportedSocketOperationError
};
enum N15QAbstractSocket11SocketStateE {
    UnconnectedState,
    Idle,
    HostLookupState,
    HostLookup,
    ConnectingState,
    Connecting,
    ConnectedState,
    Connected,
    Connection,
    BoundState,
    ListeningState,
    ClosingState,
    Closing
};
enum N15QAbstractSocket5ErrorE {
    ErrSocketRead,
    ErrConnectionRefused,
    ErrHostNotFound
};
typedef enum N15QAbstractSocket11SocketStateE {
    UnconnectedState,
    Idle,
    HostLookupState,
    HostLookup,
    ConnectingState,
    Connecting,
    ConnectedState,
    Connected,
    Connection,
    BoundState,
    ListeningState,
    ClosingState,
    Closing
} N15QAbstractSocket5StateE;

16.15.2. QtNetwork/qftp.h


class QFtp;
enum N4QFtp5StateE {
    Unconnected,
    HostLookup,
    Connecting,
    Connected,
    LoggedIn,
    Closing
};
enum N4QFtp5ErrorE {
    NoError,
    UnknownError,
    HostNotFound,
    ConnectionRefused,
    NotConnected
};
enum N4QFtp7CommandE {
    None,
    SetTransferMode,
    SetProxy,
    ConnectToHost,
    Login,
    Close,
    List,
    Cd,
    Get,
    Put,
    Remove,
    Mkdir,
    Rmdir,
    Rename,
    RawCommand
};
enum N4QFtp12TransferModeE {
    Active,
    Passive
};
enum N4QFtp12TransferTypeE {
    Binary,
    Ascii
};

16.15.3. QtNetwork/qhostaddress.h


class QIPv6Address;
typedef class QIPv6AddressQ_IPV6ADDR;
class QHostAddress;
enum N12QHostAddress14SpecialAddressE {
    Null,
    Broadcast,
    LocalHost,
    LocalHostIPv6,
    Any,
    AnyIPv6
};

16.15.4. QtNetwork/qhostinfo.h


class QHostInfo;
enum N9QHostInfo13HostInfoErrorE {
    NoError,
    HostNotFound,
    UnknownError
};

16.15.5. QtNetwork/qhttp.h


class QHttpHeader;
class QHttpResponseHeader;
class QHttpRequestHeader;
class QHttp;
enum N5QHttp5StateE {
    Unconnected,
    HostLookup,
    Connecting,
    Sending,
    Reading,
    Connected,
    Closing
};
enum N5QHttp5ErrorE {
    NoError,
    UnknownError,
    HostNotFound,
    ConnectionRefused,
    UnexpectedClose,
    InvalidResponseHeader,
    WrongContentLength,
    Aborted
};

16.15.6. QtNetwork/qnetworkproxy.h


class QNetworkProxy;
enum N13QNetworkProxy9ProxyTypeE {
    DefaultProxy,
    Socks5Proxy,
    NoProxy
};

16.15.7. QtNetwork/qtcpserver.h


class QTcpServer;

16.15.8. QtNetwork/qtcpsocket.h


typedef enum QtValidLicenseForNetworkModule QtNetworkModule;
class QTcpSocket;

16.15.9. QtNetwork/qudpsocket.h


class QUdpSocket;
enum N10QUdpSocket8BindFlagE {
    DefaultForPlatform,
    ShareAddress,
    DontShareAddress,
    ReuseAddressHint
};
class QFlags < QUdpSocket::BindFlag >;
typedef N10QUdpSocket8BindModeE;

16.15.10. QtNetwork/qurlinfo.h


class QUrlInfo;
enum N8QUrlInfo14PermissionSpecE {
    ExeOther,
    WriteOther,
    ReadOther,
    ExeGroup,
    WriteGroup,
    ReadGroup,
    ExeOwner,
    WriteOwner,
    ReadOwner
};