summaryrefslogtreecommitdiffstats
path: root/doc/man/man3/tqserversocket.3qt
diff options
context:
space:
mode:
Diffstat (limited to 'doc/man/man3/tqserversocket.3qt')
-rw-r--r--doc/man/man3/tqserversocket.3qt66
1 files changed, 33 insertions, 33 deletions
diff --git a/doc/man/man3/tqserversocket.3qt b/doc/man/man3/tqserversocket.3qt
index 8a111b563..24c3d907f 100644
--- a/doc/man/man3/tqserversocket.3qt
+++ b/doc/man/man3/tqserversocket.3qt
@@ -1,5 +1,5 @@
'\" t
-.TH QServerSocket 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*-
+.TH TQServerSocket 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*-
.\" Copyright 1992-2007 Trolltech ASA. All rights reserved. See the
.\" license file included in the distribution for a complete license
.\" statement.
@@ -7,25 +7,25 @@
.ad l
.nh
.SH NAME
-QServerSocket \- TCP-based server
+TQServerSocket \- TCP-based server
.SH SYNOPSIS
-\fC#include <ntqserversocket.h>\fR
+\fC#include <tqserversocket.h>\fR
.PP
Inherits TQObject.
.PP
.SS "Public Members"
.in +1c
.ti -1c
-.BI "\fBQServerSocket\fR ( TQ_UINT16 port, int backlog = 1, TQObject * parent = 0, const char * name = 0 )"
+.BI "\fBTQServerSocket\fR ( TQ_UINT16 port, int backlog = 1, TQObject * parent = 0, const char * name = 0 )"
.br
.ti -1c
-.BI "\fBQServerSocket\fR ( const QHostAddress & address, TQ_UINT16 port, int backlog = 1, TQObject * parent = 0, const char * name = 0 )"
+.BI "\fBTQServerSocket\fR ( const TQHostAddress & address, TQ_UINT16 port, int backlog = 1, TQObject * parent = 0, const char * name = 0 )"
.br
.ti -1c
-.BI "\fBQServerSocket\fR ( TQObject * parent = 0, const char * name = 0 )"
+.BI "\fBTQServerSocket\fR ( TQObject * parent = 0, const char * name = 0 )"
.br
.ti -1c
-.BI "virtual \fB~QServerSocket\fR ()"
+.BI "virtual \fB~TQServerSocket\fR ()"
.br
.ti -1c
.BI "bool \fBok\fR () const"
@@ -40,7 +40,7 @@ Inherits TQObject.
.BI "virtual void \fBsetSocket\fR ( int socket )"
.br
.ti -1c
-.BI "QHostAddress \fBaddress\fR () const"
+.BI "TQHostAddress \fBaddress\fR () const"
.br
.ti -1c
.BI "virtual void \fBnewConnection\fR ( int socket ) = 0"
@@ -49,67 +49,67 @@ Inherits TQObject.
.SS "Protected Members"
.in +1c
.ti -1c
-.BI "QSocketDevice * \fBsocketDevice\fR ()"
+.BI "TQSocketDevice * \fBsocketDevice\fR ()"
.br
.in -1c
.SH DESCRIPTION
-The QServerSocket class provides a TCP-based server.
+The TQServerSocket class provides a TCP-based server.
.PP
-This class is a convenience class for accepting incoming TCP connections. You can specify the port or have QServerSocket pick one, and listen on just one address or on all the machine's addresses.
+This class is a convenience class for accepting incoming TCP connections. You can specify the port or have TQServerSocket pick one, and listen on just one address or on all the machine's addresses.
.PP
-Using the API is very simple: subclass QServerSocket, call the constructor of your choice, and implement newConnection() to handle new incoming connections. There is nothing more to do.
+Using the API is very simple: subclass TQServerSocket, call the constructor of your choice, and implement newConnection() to handle new incoming connections. There is nothing more to do.
.PP
-(Note that due to lack of support in the underlying APIs, QServerSocket cannot accept or reject connections conditionally.)
+(Note that due to lack of support in the underlying APIs, TQServerSocket cannot accept or reject connections conditionally.)
.PP
-See also QSocket, QSocketDevice, QHostAddress, QSocketNotifier, and Input/Output and Networking.
+See also TQSocket, TQSocketDevice, TQHostAddress, TQSocketNotifier, and Input/Output and Networking.
.SH MEMBER FUNCTION DOCUMENTATION
-.SH "QServerSocket::QServerSocket ( TQ_UINT16 port, int backlog = 1, TQObject * parent = 0, const char * name = 0 )"
-Creates a server socket object, that will serve the given \fIport\fR on all the addresses of this host. If \fIport\fR is 0, QServerSocket will pick a suitable port in a system-dependent manner. Use \fIbacklog\fR to specify how many pending connections the server can have.
+.SH "TQServerSocket::TQServerSocket ( TQ_UINT16 port, int backlog = 1, TQObject * parent = 0, const char * name = 0 )"
+Creates a server socket object, that will serve the given \fIport\fR on all the addresses of this host. If \fIport\fR is 0, TQServerSocket will pick a suitable port in a system-dependent manner. Use \fIbacklog\fR to specify how many pending connections the server can have.
.PP
The \fIparent\fR and \fIname\fR arguments are passed on to the TQObject constructor.
.PP
\fBWarning:\fR On Tru64 Unix systems a value of 0 for \fIbacklog\fR means that you don't accept any connections at all; you should specify a value larger than 0.
-.SH "QServerSocket::QServerSocket ( const QHostAddress & address, TQ_UINT16 port, int backlog = 1, TQObject * parent = 0, const char * name = 0 )"
+.SH "TQServerSocket::TQServerSocket ( const TQHostAddress & address, TQ_UINT16 port, int backlog = 1, TQObject * parent = 0, const char * name = 0 )"
Creates a server socket object, that will serve the given \fIport\fR only on the given \fIaddress\fR. Use \fIbacklog\fR to specify how many pending connections the server can have.
.PP
The \fIparent\fR and \fIname\fR arguments are passed on to the TQObject constructor.
.PP
\fBWarning:\fR On Tru64 Unix systems a value of 0 for \fIbacklog\fR means that you don't accept any connections at all; you should specify a value larger than 0.
-.SH "QServerSocket::QServerSocket ( TQObject * parent = 0, const char * name = 0 )"
+.SH "TQServerSocket::TQServerSocket ( TQObject * parent = 0, const char * name = 0 )"
Construct an empty server socket.
.PP
-This constructor, in combination with setSocket(), allows us to use the QServerSocket class as a wrapper for other socket types (e.g. Unix Domain Sockets under Unix).
+This constructor, in combination with setSocket(), allows us to use the TQServerSocket class as a wrapper for other socket types (e.g. Unix Domain Sockets under Unix).
.PP
The \fIparent\fR and \fIname\fR arguments are passed on to the TQObject constructor.
.PP
See also setSocket().
-.SH "QServerSocket::~QServerSocket ()\fC [virtual]\fR"
+.SH "TQServerSocket::~TQServerSocket ()\fC [virtual]\fR"
Destroys the socket.
.PP
-This causes any backlogged connections (connections that have reached the host, but not yet been completely set up by calling QSocketDevice::accept()) to be severed.
+This causes any backlogged connections (connections that have reached the host, but not yet been completely set up by calling TQSocketDevice::accept()) to be severed.
.PP
Existing connections continue to exist; this only affects the acceptance of new connections.
-.SH "QHostAddress QServerSocket::address () const"
+.SH "TQHostAddress TQServerSocket::address () const"
Returns the address on which this object listens, or 0.0.0.0 if this object listens on more than one address. ok() must be TRUE before calling this function.
.PP
-See also port() and QSocketDevice::address().
-.SH "void QServerSocket::newConnection ( int socket )\fC [pure virtual]\fR"
+See also port() and TQSocketDevice::address().
+.SH "void TQServerSocket::newConnection ( int socket )\fC [pure virtual]\fR"
This pure virtual function is responsible for setting up a new incoming connection. \fIsocket\fR is the fd (file descriptor) for the newly accepted connection.
-.SH "bool QServerSocket::ok () const"
+.SH "bool TQServerSocket::ok () const"
Returns TRUE if the construction succeeded; otherwise returns FALSE.
-.SH "TQ_UINT16 QServerSocket::port () const"
-Returns the port number on which this server socket listens. This is always non-zero; if you specify 0 in the constructor, QServerSocket will pick a non-zero port itself. ok() must be TRUE before calling this function.
+.SH "TQ_UINT16 TQServerSocket::port () const"
+Returns the port number on which this server socket listens. This is always non-zero; if you specify 0 in the constructor, TQServerSocket will pick a non-zero port itself. ok() must be TRUE before calling this function.
.PP
-See also address() and QSocketDevice::port().
+See also address() and TQSocketDevice::port().
.PP
Example: network/httpd/httpd.cpp.
-.SH "void QServerSocket::setSocket ( int socket )\fC [virtual]\fR"
+.SH "void TQServerSocket::setSocket ( int socket )\fC [virtual]\fR"
Sets the socket to use \fIsocket\fR. bind() and listen() should already have been called for \fIsocket\fR.
.PP
-This allows us to use the QServerSocket class as a wrapper for other socket types (e.g. Unix Domain Sockets).
-.SH "int QServerSocket::socket () const"
+This allows us to use the TQServerSocket class as a wrapper for other socket types (e.g. Unix Domain Sockets).
+.SH "int TQServerSocket::socket () const"
Returns the operating system socket.
-.SH "QSocketDevice * QServerSocket::socketDevice ()\fC [protected]\fR"
+.SH "TQSocketDevice * TQServerSocket::socketDevice ()\fC [protected]\fR"
Returns a pointer to the internal socket device. The returned pointer is 0 if there is no connection or pending connection.
.PP
There is normally no need to manipulate the socket device directly
@@ -117,7 +117,7 @@ since this class does all the necessary setup for most client or
server socket applications.
.SH "SEE ALSO"
-.BR http://doc.trolltech.com/ntqserversocket.html
+.BR http://doc.trolltech.com/tqserversocket.html
.BR http://www.trolltech.com/faq/tech.html
.SH COPYRIGHT
Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the