QLlcpSocket

#include <QtConnectivity/QLlcpSocket>

More information will be added here shortly. For now, you'll find more extensive information about this class in the Qt reference for QLlcpSocket


Overview

Inheritance

QIODevice
QLlcpSocket

Public Types Index

enum SocketError

UnknownSocketError QAbstractSocket::UnknownSocketError, RemoteHostClosedError QAbstractSocket::RemoteHostClosedError, SocketAccessError QAbstractSocket::SocketAccessError, SocketResourceError QAbstractSocket::SocketResourceError

enum SocketState

UnconnectedState QAbstractSocket::UnconnectedState, ConnectingState QAbstractSocket::ConnectingState, ConnectedState QAbstractSocket::ConnectedState, ClosingState QAbstractSocket::ClosingState, BoundState QAbstractSocket::BoundState, ListeningState QAbstractSocket::ListeningState

enum OpenModeFlag

NotOpen 0x0000, ReadOnly 0x0001, WriteOnly 0x0002, ReadWrite ReadOnly | WriteOnly, Append 0x0004, Truncate 0x0008, Text 0x0010, Unbuffered 0x0020

Public Functions Index

QLlcpSocket (QObject *parent=0)
~QLlcpSocket ()
boolbind (quint8 port)
virtual qint64bytesAvailable () const
virtual boolcanReadLine () const
virtual voidclose ()
voidconnectToService (QNearFieldTarget *target, const QString &serviceUri)
voiddisconnectFromService ()
SocketErrorerror () const
boolhasPendingDatagrams () const
virtual boolisSequential () const
qint64pendingDatagramSize () const
qint64readDatagram (char *data, qint64 maxSize, QNearFieldTarget **target=0, quint8 *port=0)
SocketStatestate () const
virtual boolwaitForBytesWritten (int msecs=30000)
virtual boolwaitForConnected (int msecs=30000)
virtual boolwaitForDisconnected (int msecs=30000)
virtual boolwaitForReadyRead (int msecs=30000)
qint64writeDatagram (const char *data, qint64 size)
qint64writeDatagram (const QByteArray &datagram)
qint64writeDatagram (const char *data, qint64 size, QNearFieldTarget *target, quint8 port)
qint64writeDatagram (const QByteArray &datagram, QNearFieldTarget *target, quint8 port)
virtual boolatEnd () const Inherited
virtual qint64bytesToWrite () const Inherited
QStringerrorString () const Inherited
boolgetChar (char *c)Inherited
boolisOpen () const Inherited
boolisReadable () const Inherited
boolisTextModeEnabled () const Inherited
boolisWritable () const Inherited
virtual boolopen (OpenMode mode)Inherited
OpenModeopenMode () const Inherited
qint64peek (char *data, qint64 maxlen)Inherited
QByteArraypeek (qint64 maxlen)Inherited
virtual qint64pos () const Inherited
boolputChar (char c)Inherited
QIODevice ()Inherited
QIODevice (QObject *parent)Inherited
qint64read (char *data, qint64 maxlen)Inherited
QByteArrayread (qint64 maxlen)Inherited
QByteArrayreadAll ()Inherited
qint64readLine (char *data, qint64 maxlen)Inherited
QByteArrayreadLine (qint64 maxlen=0)Inherited
virtual boolreset ()Inherited
virtual boolseek (qint64 pos)Inherited
voidsetTextModeEnabled (bool enabled)Inherited
virtual qint64size () const Inherited
voidungetChar (char c)Inherited
qint64write (const char *data, qint64 len)Inherited
qint64write (const char *data)Inherited
qint64write (const QByteArray &data)Inherited

Protected Functions Index

virtual qint64readData (char *data, qint64 maxlen)
virtual qint64writeData (const char *data, qint64 len)
QIODevice (QIODevicePrivate &dd, QObject *parent=0)Inherited
virtual qint64readLineData (char *data, qint64 maxlen)Inherited
voidsetErrorString (const QString &errorString)Inherited
voidsetOpenMode (OpenMode openMode)Inherited

Signals Index

voidconnected ()
voiddisconnected ()
voiderror (QLlcpSocket::SocketError socketError)
voidstateChanged (QLlcpSocket::SocketState socketState)
voidaboutToClose ()Inherited
voidbytesWritten (qint64 bytes)Inherited
voidreadChannelFinished ()Inherited
voidreadyRead ()Inherited

Public Types

SocketError

UnknownSocketError QAbstractSocket::UnknownSocketError
RemoteHostClosedError QAbstractSocket::RemoteHostClosedError
SocketAccessError QAbstractSocket::SocketAccessError
SocketResourceError QAbstractSocket::SocketResourceError

SocketState

UnconnectedState QAbstractSocket::UnconnectedState
ConnectingState QAbstractSocket::ConnectingState
ConnectedState QAbstractSocket::ConnectedState
ClosingState QAbstractSocket::ClosingState
BoundState QAbstractSocket::BoundState
ListeningState QAbstractSocket::ListeningState

OpenModeFlag Inherited

NotOpen 0x0000
ReadOnly 0x0001
WriteOnly 0x0002
ReadWrite ReadOnly | WriteOnly
Append 0x0004
Truncate 0x0008
Text 0x0010
Unbuffered 0x0020

Public Functions

QLlcpSocket (

~QLlcpSocket ()

Destructor.

bool bind (
  • quint8port)

virtual qint64 bytesAvailable ()

virtual bool canReadLine ()

virtual void close ()

void connectToService (

void disconnectFromService ()

SocketError error ()

bool hasPendingDatagrams ()

virtual bool isSequential ()

qint64 pendingDatagramSize ()

qint64 readDatagram (

SocketState state ()

virtual bool waitForBytesWritten (
  • intmsecs)

virtual bool waitForConnected (
  • intmsecs)

virtual bool waitForDisconnected (
  • intmsecs)

virtual bool waitForReadyRead (
  • intmsecs)

qint64 writeDatagram (
  • const char *data,
  • qint64size )

qint64 writeDatagram (

qint64 writeDatagram (

qint64 writeDatagram (

virtual bool atEnd ()Inherited

virtual qint64 bytesToWrite ()Inherited

QString errorString ()Inherited

bool getChar (
  • char *c)
Inherited

bool isOpen ()Inherited

bool isReadable ()Inherited

bool isTextModeEnabled ()Inherited

bool isWritable ()Inherited

virtual bool open (
  • OpenModemode)
Inherited

OpenMode openMode ()Inherited

qint64 peek (
  • char *data,
  • qint64maxlen )
Inherited

QByteArray peek (
  • qint64maxlen)
Inherited

virtual qint64 pos ()Inherited

bool putChar (
  • charc)
Inherited

QIODevice ()Inherited

QIODevice (Inherited

qint64 read (
  • char *data,
  • qint64maxlen )
Inherited

QByteArray read (
  • qint64maxlen)
Inherited

QByteArray readAll ()Inherited

qint64 readLine (
  • char *data,
  • qint64maxlen )
Inherited

QByteArray readLine (
  • qint64maxlen)
Inherited

virtual bool reset ()Inherited

virtual bool seek (
  • qint64pos)
Inherited

void setTextModeEnabled (
  • boolenabled)
Inherited

virtual qint64 size ()Inherited

void ungetChar (
  • charc)
Inherited

qint64 write (
  • const char *data,
  • qint64len )
Inherited

qint64 write (
  • const char *data)
Inherited

qint64 write (Inherited

Protected Functions

virtual qint64 readData (
  • char *data,
  • qint64maxlen )

virtual qint64 writeData (
  • const char *data,
  • qint64len )

QIODevice (
  • QIODevicePrivate &dd,
  • QObject *parent )
Inherited

virtual qint64 readLineData (
  • char *data,
  • qint64maxlen )
Inherited

void setErrorString (Inherited

void setOpenMode (
  • OpenModeopenMode)
Inherited

Signals

void connected ()

void disconnected ()

void error (
  • QLlcpSocket::SocketErrorsocketError)

void stateChanged (
  • QLlcpSocket::SocketStatesocketState)

void aboutToClose ()Inherited

void bytesWritten (
  • qint64bytes)
Inherited

void readChannelFinished ()Inherited

void readyRead ()Inherited

Last modified: 2015-07-24



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus