NAME
Qt::Network::QAbstractSocket
PUBLIC METHODS
- QAbstractSocket(QAbstractSocket::SocketType socketType, QObject * parent)
- ~QAbstractSocket()
- void abort()
- bool atEnd()
- qint64 bytesAvailable()
- qint64 bytesToWrite()
- bool canReadLine()
- void close()
- void connectToHost(const QString & hostName, quint16 port, QFlags<QIODevice::OpenModeFlag> mode)
- void connectToHost(const QString & hostName, quint16 port, QFlags<QIODevice::OpenModeFlag> mode = QIODevice::ReadWrite)
- void connectToHost(const QHostAddress & address, quint16 port, QFlags<QIODevice::OpenModeFlag> mode)
- void connectToHost(const QHostAddress & address, quint16 port, QFlags<QIODevice::OpenModeFlag> mode = QIODevice::ReadWrite)
- void disconnectFromHost()
- QAbstractSocket::SocketError error()
- bool flush()
- bool isSequential()
- bool isValid()
- QHostAddress localAddress()
- quint16 localPort()
- QHostAddress peerAddress()
- QString peerName()
- quint16 peerPort()
- QNetworkProxy proxy()
- qint64 readBufferSize()
- void setProxy(const QNetworkProxy & networkProxy)
- void setReadBufferSize(qint64 size)
- bool setSocketDescriptor(int socketDescriptor, QAbstractSocket::SocketState state, QFlags<QIODevice::OpenModeFlag> openMode)
- bool setSocketDescriptor(int socketDescriptor, QAbstractSocket::SocketState state, QFlags<QIODevice::OpenModeFlag> openMode = QIODevice::ReadWrite)
- bool setSocketDescriptor(int socketDescriptor, QAbstractSocket::SocketState state = QAbstractSocket::ConnectedState, QFlags<QIODevice::OpenModeFlag> openMode = QIODevice::ReadWrite)
- void setSocketOption(QAbstractSocket::SocketOption option, const QVariant & value)
- int socketDescriptor()
- QVariant socketOption(QAbstractSocket::SocketOption option)
- QAbstractSocket::SocketType socketType()
- QAbstractSocket::SocketState state()
- bool waitForBytesWritten(int msecs)
- bool waitForBytesWritten(int msecs = 30000)
- bool waitForConnected(int msecs)
- bool waitForConnected(int msecs = 30000)
- bool waitForDisconnected(int msecs)
- bool waitForDisconnected(int msecs = 30000)
- bool waitForReadyRead(int msecs)
- bool waitForReadyRead(int msecs = 30000)
ENUM VALUES
- TcpSocket
- UdpSocket
- UnknownSocketType
- IPv4Protocol
- IPv6Protocol
- UnknownNetworkLayerProtocol
- ConnectionRefusedError
- RemoteHostClosedError
- HostNotFoundError
- SocketAccessError
- SocketResourceError
- SocketTimeoutError
- DatagramTooLargeError
- NetworkError
- AddressInUseError
- SocketAddressNotAvailableError
- UnsupportedSocketOperationError
- UnfinishedSocketOperationError
- ProxyAuthenticationRequiredError
- SslHandshakeFailedError
- ProxyConnectionRefusedError
- ProxyConnectionClosedError
- ProxyConnectionTimeoutError
- ProxyNotFoundError
- ProxyProtocolError
- UnknownSocketError
- UnconnectedState
- HostLookupState
- ConnectingState
- ConnectedState
- BoundState
- ListeningState
- ClosingState
- LowDelayOption
- KeepAliveOption
EXPORT
None by default.
AUTHOR
Dongxu Ma <dongxu@cpan.org>
COPYRIGHT AND LICENSE
Copyright (C) 2011 - 2012 by Dongxu Ma
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.