A simple network server.
More...
SimpleServer::SimpleServer |
( |
QObject * |
parent = 0 ) | |
|
|
explicit |
Constructor.
- Parameters
-
parent | parent of this QObject |
void SimpleServer::close |
( |
) | |
|
QString SimpleServer::errorString |
( |
) | |
const |
get last error message
- Returns
- error message
QString SimpleServer::fullServerName |
( |
) | |
const |
get pipe name
- Returns
- full pipe name
bool SimpleServer::hasPendingConnections |
( |
) | |
const |
check for more connections
- Returns
- true if there is any pending connection
bool SimpleServer::isListening |
( |
) | |
const |
check listening state
- Returns
- true if listening
bool SimpleServer::listen |
( |
const QString & |
name, |
|
|
bool |
replace = false |
|
) |
| |
listen to a local server
- Parameters
-
[in] | name | local server name |
[in] | replace | replace server if exists |
- Returns
- true if listen successful
This function listen on a local server, i.e. a named pipe.
Under UNIX-like system, they won't remove local server automatically, so you replace
flag to force replace existing server.
get next pending connection
- Returns
- pending connection, null if no pending connection
QAbstractSocket::SocketError SimpleServer::serverError |
( |
) | |
const |
get last server error code
- Returns
- error code
QString SimpleServer::serverName |
( |
) | |
const |
get short pipe name
- Returns
- short pipe name
The documentation for this class was generated from the following files: