-
Notifications
You must be signed in to change notification settings - Fork 4
QWSServerSocket
azuriel edited this page Nov 9, 2010
·
3 revisions
Used by QWSServer in init process. It's #ifdef'd to be either a QUnixSocketServer or a QTcpServer; in our case, it's going to be TCP because QT_NO_SXE is defined.
Creates a TCP socket using the socket()
syscall and bind()
s it to the passed in QString &file
, with appropriate error checking. Then it listen()
s to set the queue size to backlog
which is 16
in this case.
That's it for this file, since incomingConnection and nextPendingConnection are not re-implemented in TCP mode.
There are some functions inherited from QTcpServer and others that are also required, since they're called in QWSServer.
- newConnection - this one we need
- isListening - this is used to test if the socket is up, don't need
- socketDescriptor - this is used to set socket options, don't need
- nextPendingConnection - this one we need