summaryrefslogtreecommitdiffstats
path: root/doc/man/man3/qsocket.3qt
diff options
context:
space:
mode:
Diffstat (limited to 'doc/man/man3/qsocket.3qt')
-rw-r--r--doc/man/man3/qsocket.3qt44
1 files changed, 22 insertions, 22 deletions
diff --git a/doc/man/man3/qsocket.3qt b/doc/man/man3/qsocket.3qt
index c552ba46..2a643b61 100644
--- a/doc/man/man3/qsocket.3qt
+++ b/doc/man/man3/qsocket.3qt
@@ -43,7 +43,7 @@ Inherits QObject and QIODevice.
.BI "virtual void \fBsetSocketDevice\fR ( QSocketDevice * device )"
.br
.ti -1c
-.BI "virtual void \fBconnectToHost\fR ( const QString & host, Q_UINT16 port )"
+.BI "virtual void \fBconnectToHost\fR ( const QString & host, TQ_UINT16 port )"
.br
.ti -1c
.BI "QString \fBpeerName\fR () const"
@@ -70,25 +70,25 @@ Inherits QObject and QIODevice.
.BI "virtual bool \fBatEnd\fR () const"
.br
.ti -1c
-.BI "Q_ULONG \fBbytesAvailable\fR () const"
+.BI "TQ_ULONG \fBbytesAvailable\fR () const"
.br
.ti -1c
-.BI "Q_ULONG \fBwaitForMore\fR ( int msecs, bool * timeout ) const"
+.BI "TQ_ULONG \fBwaitForMore\fR ( int msecs, bool * timeout ) const"
.br
.ti -1c
-.BI "Q_ULONG \fBwaitForMore\fR ( int msecs ) const"
+.BI "TQ_ULONG \fBwaitForMore\fR ( int msecs ) const"
.br
.ti -1c
-.BI "Q_ULONG \fBbytesToWrite\fR () const"
+.BI "TQ_ULONG \fBbytesToWrite\fR () const"
.br
.ti -1c
.BI "void \fBclearPendingData\fR ()"
.br
.ti -1c
-.BI "virtual Q_LONG \fBreadBlock\fR ( char * data, Q_ULONG maxlen )"
+.BI "virtual TQ_LONG \fBreadBlock\fR ( char * data, TQ_ULONG maxlen )"
.br
.ti -1c
-.BI "virtual Q_LONG \fBwriteBlock\fR ( const char * data, Q_ULONG len )"
+.BI "virtual TQ_LONG \fBwriteBlock\fR ( const char * data, TQ_ULONG len )"
.br
.ti -1c
.BI "virtual int \fBgetch\fR ()"
@@ -106,10 +106,10 @@ Inherits QObject and QIODevice.
.BI "virtual QString \fBreadLine\fR ()"
.br
.ti -1c
-.BI "Q_UINT16 \fBport\fR () const"
+.BI "TQ_UINT16 \fBport\fR () const"
.br
.ti -1c
-.BI "Q_UINT16 \fBpeerPort\fR () const"
+.BI "TQ_UINT16 \fBpeerPort\fR () const"
.br
.ti -1c
.BI "QHostAddress \fBaddress\fR () const"
@@ -118,10 +118,10 @@ Inherits QObject and QIODevice.
.BI "QHostAddress \fBpeerAddress\fR () const"
.br
.ti -1c
-.BI "void \fBsetReadBufferSize\fR ( Q_ULONG bufSize )"
+.BI "void \fBsetReadBufferSize\fR ( TQ_ULONG bufSize )"
.br
.ti -1c
-.BI "Q_ULONG \fBreadBufferSize\fR () const"
+.BI "TQ_ULONG \fBreadBufferSize\fR () const"
.br
.in -1c
.SS "Signals"
@@ -220,7 +220,7 @@ Reimplemented from QIODevice.
Returns TRUE if there is no more data to read; otherwise returns FALSE.
.PP
Reimplemented from QIODevice.
-.SH "Q_ULONG QSocket::bytesAvailable () const"
+.SH "TQ_ULONG QSocket::bytesAvailable () const"
Returns the number of incoming bytes that can be read, i.e. the size of the input buffer. Equivalent to size().
.PP
This function can trigger the readyRead() signal, if more data has arrived on the socket.
@@ -228,7 +228,7 @@ This function can trigger the readyRead() signal, if more data has arrived on th
See also bytesToWrite().
.PP
Example: network/networkprotocol/nntp.cpp.
-.SH "Q_ULONG QSocket::bytesToWrite () const"
+.SH "TQ_ULONG QSocket::bytesToWrite () const"
Returns the number of bytes that are waiting to be written, i.e. the size of the output buffer.
.PP
See also bytesAvailable() and clearPendingData().
@@ -274,7 +274,7 @@ Examples:
.)l network/clientserver/client/client.cpp, network/httpd/httpd.cpp, and network/networkprotocol/nntp.cpp.
.PP
Reimplemented from QIODevice.
-.SH "void QSocket::connectToHost ( const QString & host, Q_UINT16 port )\fC [virtual]\fR"
+.SH "void QSocket::connectToHost ( const QString & host, TQ_UINT16 port )\fC [virtual]\fR"
Attempts to make a connection to \fIhost\fR on the specified \fIport\fR and return immediately.
.PP
Any connection or pending connection is closed immediately, and QSocket goes into the HostLookup state. When the lookup succeeds, it emits hostFound(), starts a TCP connection and goes into the Connecting state. Finally, when the connection succeeds, it emits connected() and goes into the Connected state. If there is an error at any point, it emits error().
@@ -341,11 +341,11 @@ Returns the address of the connected peer if the socket is in Connected state; o
Returns the host name as specified to the connectToHost() function. An empty string is returned if none has been set.
.PP
Example: network/mail/smtp.cpp.
-.SH "Q_UINT16 QSocket::peerPort () const"
+.SH "TQ_UINT16 QSocket::peerPort () const"
Returns the peer's host port number, normally as specified to the connectToHost() function. If none has been set, this function returns 0.
.PP
Note that Qt always uses native byte order, i.e. 67 is 67 in Qt; there is no need to call htons().
-.SH "Q_UINT16 QSocket::port () const"
+.SH "TQ_UINT16 QSocket::port () const"
Returns the host port number of this socket, in native byte order.
.SH "int QSocket::putch ( int ch )\fC [virtual]\fR"
Writes the character \fIch\fR to the output buffer.
@@ -355,13 +355,13 @@ Returns \fIch\fR, or -1 if an error occurred.
See also getch().
.PP
Reimplemented from QIODevice.
-.SH "Q_LONG QSocket::readBlock ( char * data, Q_ULONG maxlen )\fC [virtual]\fR"
+.SH "TQ_LONG QSocket::readBlock ( char * data, TQ_ULONG maxlen )\fC [virtual]\fR"
Reads \fImaxlen\fR bytes from the socket into \fIdata\fR and returns the number of bytes read. Returns -1 if an error occurred.
.PP
Example: network/networkprotocol/nntp.cpp.
.PP
Reimplemented from QIODevice.
-.SH "Q_ULONG QSocket::readBufferSize () const"
+.SH "TQ_ULONG QSocket::readBufferSize () const"
Returns the size of the read buffer.
.PP
See also setReadBufferSize().
@@ -381,7 +381,7 @@ See also readBlock(), readLine(), and bytesAvailable().
.PP
Examples:
.)l network/clientserver/client/client.cpp, network/httpd/httpd.cpp, network/mail/smtp.cpp, and network/networkprotocol/nntp.cpp.
-.SH "void QSocket::setReadBufferSize ( Q_ULONG bufSize )"
+.SH "void QSocket::setReadBufferSize ( TQ_ULONG bufSize )"
Sets the size of the QSocket's internal read buffer to \fIbufSize\fR.
.PP
Usually QSocket reads all data that is available from the operating system's socket. If the buffer size is limited to a certain size, this means that the QSocket class doesn't buffer more than this size of data.
@@ -424,7 +424,7 @@ Examples:
This implementation of the virtual function QIODevice::ungetch() prepends the character \fIch\fR to the read buffer so that the next read returns this character as the first character of the output.
.PP
Reimplemented from QIODevice.
-.SH "Q_ULONG QSocket::waitForMore ( int msecs, bool * timeout ) const"
+.SH "TQ_ULONG QSocket::waitForMore ( int msecs, bool * timeout ) const"
Wait up to \fImsecs\fR milliseconds for more data to be available.
.PP
If \fImsecs\fR is -1 the call will block indefinitely.
@@ -436,9 +436,9 @@ If \fItimeout\fR is non-null and no error occurred (i.e. it does not return -1):
\fBWarning:\fR This is a blocking call and should be avoided in event driven applications.
.PP
See also bytesAvailable().
-.SH "Q_ULONG QSocket::waitForMore ( int msecs ) const"
+.SH "TQ_ULONG QSocket::waitForMore ( int msecs ) const"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
-.SH "Q_LONG QSocket::writeBlock ( const char * data, Q_ULONG len )\fC [virtual]\fR"
+.SH "TQ_LONG QSocket::writeBlock ( const char * data, TQ_ULONG len )\fC [virtual]\fR"
Writes \fIlen\fR bytes to the socket from \fIdata\fR and returns the number of bytes written. Returns -1 if an error occurred.
.PP
Example: network/networkprotocol/nntp.cpp.