|
| QTcpSocket (QObject parent=null) |
|
|
|
override void | CreateProxy () |
|
new void | Dispose () |
|
| QAbstractSocket (QAbstractSocket.SocketType socketType, QObject parent) |
|
|
|
new void | Abort () |
|
|
|
override bool | AtEnd () |
|
|
|
override long | BytesAvailable () |
|
|
|
override long | BytesToWrite () |
|
|
|
override bool | CanReadLine () |
|
|
|
override void | Close () |
|
|
|
new void | ConnectToHost (QHostAddress address, ushort port, QIODevice.OpenModeFlag mode=QIODevice.OpenModeFlag.ReadWrite) |
|
|
|
new void | ConnectToHost (string hostName, ushort port, QIODevice.OpenModeFlag mode=QIODevice.OpenModeFlag.ReadWrite) |
|
|
|
new void | DisconnectFromHost () |
|
|
|
new QAbstractSocket.SocketError | OnError () |
|
|
|
new bool | Flush () |
|
|
|
override bool | IsSequential () |
|
|
|
new bool | IsValid () |
|
|
|
new QHostAddress | LocalAddress () |
|
|
|
new ushort | LocalPort () |
|
|
|
new QHostAddress | PeerAddress () |
|
|
|
new string | PeerName () |
|
|
|
new ushort | PeerPort () |
|
|
|
new bool | SetSocketDescriptor (int socketDescriptor, QAbstractSocket.SocketState state=QAbstractSocket.SocketState.ConnectedState, QIODevice.OpenModeFlag openMode=QIODevice.OpenModeFlag.ReadWrite) |
|
|
|
new void | SetSocketOption (QAbstractSocket.SocketOption option, object value) |
|
|
|
new int | SocketDescriptor () |
|
|
|
new object | socketOption (QAbstractSocket.SocketOption option) |
|
|
|
new QAbstractSocket.SocketType | socketType () |
|
|
|
new QAbstractSocket.SocketState | State () |
|
|
|
override bool | WaitForBytesWritten (int msecs=30000) |
|
|
|
new bool | WaitForConnected (int msecs=30000) |
|
|
|
new bool | WaitForDisconnected (int msecs=30000) |
|
|
|
override bool | WaitForReadyRead (int msecs=30000) |
|
|
|
new void | Dispose () |
|
| QIODevice () |
|
|
|
| QIODevice (QObject parent) |
|
|
|
new string | ErrorString () |
|
|
|
new bool | GetChar (Pointer< sbyte > c) |
|
|
|
new bool | IsOpen () |
|
|
|
new bool | IsReadable () |
|
|
|
new bool | IsTextModeEnabled () |
|
|
|
new bool | IsWritable () |
|
|
|
virtual bool | Open (QIODevice.OpenModeFlag mode) |
|
|
|
new QIODevice.OpenModeFlag | OpenMode () |
|
|
|
new QByteArray | Peek (long maxlen) |
|
|
|
new long | Peek (Pointer< sbyte > data, long maxlen) |
|
|
|
virtual long | Pos () |
|
|
|
new bool | PutChar (sbyte c) |
|
|
|
new QByteArray | Read (long maxlen) |
|
|
|
new long | Read (Pointer< sbyte > data, long maxlen) |
|
|
|
new QByteArray | ReadAll () |
|
|
|
new QByteArray | ReadLine (long maxlen=0) |
|
|
|
new long | ReadLine (Pointer< sbyte > data, long maxlen) |
|
|
|
virtual bool | Reset () |
|
|
|
virtual bool | Seek (long pos) |
|
|
|
new void | SetTextModeEnabled (bool enabled) |
|
|
|
virtual long | Size () |
|
|
|
new void | UngetChar (sbyte c) |
|
|
|
new long | Write (QByteArray data) |
|
|
|
new long | Write (string data) |
|
|
|
new long | Write (string data, long len) |
|
|
|
new void | Dispose () |
|
| QObject (QObject parent=null) |
|
|
|
new bool | BlockSignals (bool b) |
|
|
|
new
System.Collections.Generic.List
< QObject > | Children () |
|
|
|
new bool | Connect (QObject sender, string signal, string member, Qt.ConnectionType type=Qt.ConnectionType.AutoConnection) |
|
|
|
new void | DeleteLater () |
|
|
|
new bool | Disconnect (QObject receiver, string member=null) |
|
|
|
new bool | Disconnect (string signal=null, QObject receiver=null, string member=null) |
|
|
|
new void | DumpObjectInfo () |
|
|
|
new void | DumpObjectTree () |
|
|
|
new
System.Collections.Generic.List
< QByteArray > | DynamicPropertyNames () |
|
|
|
virtual bool | OnEvent (QEvent arg1) |
|
|
|
virtual bool | EventFilter (QObject arg1, QEvent arg2) |
|
|
|
new bool | Inherits (string classname) |
|
|
|
new void | InstallEventFilter (QObject arg1) |
|
|
|
new bool | IsWidgetType () |
|
|
|
new void | KillTimer (int id) |
|
|
|
new object | Property (string name) |
|
|
|
new void | RemoveEventFilter (QObject arg1) |
|
|
|
new bool | SetProperty (string name, object value) |
|
|
|
new void | SetUserData (uint id, QObjectUserData data) |
|
new bool | SignalsBlocked () |
|
|
|
new int | StartTimer (int interval) |
|
|
|
new QObjectUserData | UserData (uint id) |
|
new void | Dispose () |
|
delegate QTextStream | FuncQTextStreamQTextStream (QTextStream qTextStream) |
|
delegate string | FuncStringQByteArray (QByteArray qByteArray) |
|
delegate QByteArray | FuncQByteArrayString (string @string) |
|
delegate void | ActionQtMsgTypeString (QtMsgType qtMsgType, string @string) |
|
delegate QObject | FuncQObject () |
|
|
static string | Tr (string s, string c=null) |
|
static string | Tr (string s, string c, int n) |
|
static string | TrUtf8 (string s, string c=null) |
|
static string | TrUtf8 (string s, string c, int n) |
|
static string | Tr (string s, string c=null) |
|
static string | Tr (string s, string c, int n) |
|
static string | TrUtf8 (string s, string c=null) |
|
static string | TrUtf8 (string s, string c, int n) |
|
static string | Tr (string s, string c=null) |
|
static string | Tr (string s, string c, int n) |
|
static string | TrUtf8 (string s, string c=null) |
|
static string | TrUtf8 (string s, string c, int n) |
|
static bool | Connect (QObject sender, QMetaMethod signal, QObject receiver, QMetaMethod method, Qt.ConnectionType type=Qt.ConnectionType.AutoConnection) |
|
|
|
static bool | Connect (QObject sender, string signal, QObject receiver, string member, Qt.ConnectionType arg5=Qt.ConnectionType.AutoConnection) |
|
|
|
static bool | Disconnect (QObject sender, QMetaMethod signal, QObject receiver, QMetaMethod member) |
|
|
|
static bool | Disconnect (QObject sender, string signal, QObject receiver, string member) |
|
|
|
static uint | RegisterUserData () |
|
static string | Tr (string s, string c=null) |
|
|
|
static string | Tr (string s, string c, int n) |
|
|
|
static string | TrUtf8 (string s, string c=null) |
|
|
|
static string | TrUtf8 (string s, string c, int n) |
|
|
|
static QDataStream | Write (QDataStream s, object p) |
|
static QDataStream | Write (QDataStream arg1, QSizeF arg2) |
|
static QTextStream | Write (QTextStream s, Qt.FuncQTextStreamQTextStream f) |
|
static QDataStream | Write (QDataStream arg1, QPoint arg2) |
|
static QDataStream | Write (QDataStream arg1, QLineF arg2) |
|
static QDataStream | Write (QDataStream arg1, QPointF arg2) |
|
static QDataStream | Write (QDataStream arg1, QChar arg2) |
|
static QDataStream | Write (QDataStream arg1, QByteArray arg2) |
|
static QDataStream | Write (QDataStream arg1, QEasingCurve arg2) |
|
static QDataStream | Write (QDataStream arg1, QRectF arg2) |
|
static QDataStream | Write (QDataStream arg1, QDateTime arg2) |
|
static QDataStream | Write (QDataStream arg1, QUrl arg2) |
|
static QDataStream | Write (QDataStream arg1, QTime arg2) |
|
static QDataStream | Write (QDataStream arg1, QLocale arg2) |
|
static QDataStream | Write (QDataStream arg1, QBitArray arg2) |
|
static QDataStream | Write (QDataStream arg1, QUuid arg2) |
|
static QDataStream | Write (QDataStream arg1, QLine arg2) |
|
static QDataStream | Write (QDataStream arg1, QDate arg2) |
|
static QDataStream | Write (QDataStream @out, QRegExp regExp) |
|
static QDataStream | Write (QDataStream arg1, QRect arg2) |
|
static QDataStream | Write (QDataStream arg1, QSize arg2) |
|
static QDataStream | Write (QDataStream s, QVariant.Type p) |
|
static QDataStream | Write (QDataStream arg1, string arg2) |
|
static QDataStream | Write (QDataStream @out, System.Collections.Generic.List< string > list) |
|
static QDataStream | Read (QDataStream arg1, QChar arg2) |
|
static QDataStream | Read (QDataStream arg1, QLocale arg2) |
|
static QDataStream | Read (QDataStream arg1, QRect arg2) |
|
static QDataStream | Read (QDataStream arg1, QEasingCurve arg2) |
|
static QDataStream | Read (QDataStream arg1, QDate arg2) |
|
static QDataStream | Read (QDataStream arg1, QUrl arg2) |
|
static QDataStream | Read (QDataStream arg1, QUuid arg2) |
|
static QTextStream | Read (QTextStream s, Qt.FuncQTextStreamQTextStream f) |
|
static QDataStream | Read (QDataStream arg1, QLineF arg2) |
|
static QDataStream | Read (QDataStream arg1, QRectF arg2) |
|
static QDataStream | Read (QDataStream arg1, QPointF arg2) |
|
static QDataStream | Read (QDataStream arg1, QLine arg2) |
|
static QDataStream | Read (QDataStream arg1, QBitArray arg2) |
|
static QDataStream | Read (QDataStream arg1, QSize arg2) |
|
static QDataStream | Read (QDataStream arg1, QDateTime arg2) |
|
static QDataStream | Read (QDataStream arg1, QTime arg2) |
|
static QDataStream | Read (QDataStream arg1, QPoint arg2) |
|
static QDataStream | Read (QDataStream @in, QRegExp regExp) |
|
static QDataStream | Read (QDataStream s, object p) |
|
static QDataStream | Read (QDataStream arg1, QByteArray arg2) |
|
static QDataStream | Read (QDataStream arg1, QSizeF arg2) |
|
static QDataStream | Read (QDataStream arg1, string arg2) |
|
static QDataStream | Read (QDataStream s, QVariant.Type p) |
|
static QDataStream | Read (QDataStream @in, System.Collections.Generic.List< string > list) |
|
static double | qAcos (double v) |
|
static void | qAddPostRoutine (System.Action arg1) |
|
static string | qAppName () |
|
static double | qAsin (double v) |
|
static double | qAtan (double v) |
|
static double | qAtan2 (double x, double y) |
|
static void | qBadAlloc () |
|
static int | qCeil (double v) |
|
static ushort | qChecksum (string s, uint len) |
|
static QByteArray | qCompress (QByteArray data) |
|
static QByteArray | qCompress (QByteArray data, int compressionLevel=-1) |
|
static QByteArray | qCompress (Pointer< byte > data, int nbytes) |
|
static QByteArray | qCompress (Pointer< byte > data, int nbytes, int compressionLevel=-1) |
|
static double | qCos (double v) |
|
static double | qExp (double v) |
|
static double | qFabs (double v) |
|
static double | qFastCos (double x) |
|
static double | qFastSin (double x) |
|
static string | qFlagLocation (string method) |
|
static int | qFloor (double v) |
|
static bool | qFuzzyCompare (double p1, double p2) |
|
static bool | qFuzzyCompare (float p1, float p2) |
|
static bool | qFuzzyIsNull (double d) |
|
static bool | qFuzzyIsNull (float f) |
|
static uint | qHash (QBitArray key) |
|
static uint | qHash (QChar key) |
|
static uint | qHash (QStringRef key) |
|
static uint | qHash (QUrl url) |
|
static uint | qHash (QPersistentModelIndex index) |
|
static uint | qHash (QByteArray key) |
|
static uint | qHash (QModelIndex index) |
|
static uint | qHash (uint key) |
|
static uint | qHash (sbyte key) |
|
static uint | qHash (byte key) |
|
static uint | qHash (short key) |
|
static uint | qHash (NativeLong key) |
|
static uint | qHash (ushort key) |
|
static uint | qHash (long key) |
|
static uint | qHash (ulong key) |
|
static uint | qHash (int key) |
|
static uint | qHash (string key) |
|
static uint | qHash (NativeULong key) |
|
static double | qInf () |
|
static Qt.ActionQtMsgTypeString | qInstallMsgHandler (Qt.ActionQtMsgTypeString arg1) |
|
static int | qIntCast (float f) |
|
static int | qIntCast (double f) |
|
static bool | qIsFinite (double d) |
|
static bool | qIsFinite (float f) |
|
static bool | qIsInf (float f) |
|
static bool | qIsInf (double d) |
|
static bool | qIsNaN (float f) |
|
static bool | qIsNaN (double d) |
|
static bool | qIsNull (float f) |
|
static bool | qIsNull (double d) |
|
static double | qLn (double v) |
|
static double | qPow (double x, double y) |
|
static double | qQNaN () |
|
static void | qRegisterStaticPluginInstanceFunction (Qt.FuncQObject function) |
|
static void | qRemovePostRoutine (System.Action arg1) |
|
static int | qRound (double d) |
|
static long | qRound64 (double d) |
|
static double | qSNaN () |
|
static bool | qSharedBuild () |
|
static double | qSin (double v) |
|
static double | qSqrt (double v) |
|
static bool | qStringComparisonHelper (QStringRef s1, string s2) |
|
static double | qTan (double v) |
|
static QByteArray | qUncompress (QByteArray data) |
|
static QByteArray | qUncompress (Pointer< byte > data, int nbytes) |
|
static string | qVersion () |
|
static void | Qbswap_helper (Pointer< byte > src, Pointer< byte > dest, int size) |
|
static QByteArray | Qgetenv (string varName) |
|
static bool | Qputenv (string varName, QByteArray value) |
|
static int | Qrand () |
|
static void | Qsrand (uint seed) |
|
static int | Qstrcmp (QByteArray str1, QByteArray str2) |
|
static int | Qstrcmp (QByteArray str1, string str2) |
|
static int | Qstrcmp (string str1, QByteArray str2) |
|
static int | Qstrcmp (string str1, string str2) |
|
static Pointer< sbyte > | Qstrcpy (Pointer< sbyte > dst, string src) |
|
static Pointer< sbyte > | Qstrdup (string arg1) |
|
static int | Qstricmp (string arg1, string arg2) |
|
static uint | Qstrlen (string str) |
|
static int | Qstrncmp (string str1, string str2, uint len) |
|
static Pointer< sbyte > | Qstrncpy (Pointer< sbyte > dst, string src, uint len) |
|
static int | Qstrnicmp (string arg1, string arg2, uint len) |
|
static uint | Qstrnlen (string str, uint maxlen) |
|
static string | QtTrId (string id, int n=-1) |
|
The QTcpSocket class provides a TCP socket.
TCP (Transmission Control Protocol) is a reliable, stream-oriented, connection-oriented transport protocol. It is especially well suited for continuous transmission of data.
QTcpSocket is a convenience subclass of QAbstractSocket that allows you to establish a TCP connection and transfer streams of data. See the QAbstractSocket documentation for details.
Note: TCP sockets cannot be opened in QIODevice::Unbuffered mode.
Symbian Platform Security Requirements
On Symbian, processes which use this class must have the NetworkServices platform security capability. If the client process lacks this capability, it will result in a panic.
Platform security capabilities are added via the TARGET.CAPABILITY qmake variable.
See also QTcpServer, QUdpSocket, QFtp, QNetworkAccessManager, Fortune Server Example, Fortune Client Example, Threaded Fortune Server Example, Blocking Fortune Client Example, Loopback Example, and Torrent Example.