QTS http server class.
More...
#include <QtsHttp.h>
QTS http server class.
- Support to login QNAP Turbo NAS system and file station.
- Open and close QNAP Turbo NAS system/file station.
CQtsHttpServer::CQtsHttpServer |
( |
| ) |
|
Constructor with CQtsHttpServerInfo server info.
- Parameters
-
[IN] | ServerInfo : Qts http server info. |
- Returns
- n/a.
CQtsHttpServer::~CQtsHttpServer |
( |
| ) |
|
CloseFileStation if QTS_FILESTATION_VERSION = QTS_FILESTATION to close and destroy file station object.
- Parameters
-
[IN] | pFileStation : File station object. |
- Returns
- QTS_HTTP_API_RESULT : API success or fail error code..
CloseSystem if QTS_SYSTEM_VERSION = QTS_SYSTEM to close and destroy NAS system object.
- Parameters
-
[IN] | pSystem : NAS system object. |
- Returns
- QTS_HTTP_API_RESULT : API success or fail error code..
Login NAS system/file station of QNAP Turbo NAS Server.
- Parameters
-
[IN] | loginStation : Login station type. |
- Returns
- QTS_HTTP_API_RESULT : API success or fail error code.
OpenFileStation if QTS_FILESTATION_VERSION = QTS_FILESTATION to get file station object.
- Parameters
-
- Returns
- IQtsHttpFileStation* : File station object pointer.
OpenSystem if QTS_SYSTEM_VERSION = QTS_SYSTEM to get NAS system object.
- Parameters
-
- Returns
- IQtsHttpSystem* : NAS system object pointer.
Query file station SDK version.
- Parameters
-
- Returns
- QTS_HTTP_FILE_STATION_API_VERSION : File station API version.
Query NAS system SDK version.
- Parameters
-
- Returns
- QTS_HTTP_SYSTEM_API_VERSION : NAS system API version.
BOOL CQtsHttpServer::SetAgentName |
( |
LPCTSTR |
strAgentName | ) |
|
Developers can change HTTP agent name before call QTS NAS system/file station API.
- Parameters
-
[IN] | strAgentName : New HTTP agent name. |
- Returns
- TRUE : set HTTP agent name success.
-
FALSE : set HTTP agent name fail.
BOOL CQtsHttpServer::SetFileStationPortNum |
( |
long |
lPortNumber | ) |
|
Set file station connection port number.
- Parameters
-
[IN] | lPortNumber : File station port number. |
- Returns
- TRUE : Set success.
-
FALSE : Set fail.
BOOL CQtsHttpServer::SetFileStationSSLPortNum |
( |
long |
lSSLPortNumber | ) |
|
Set file station SSL connection port number.
- Parameters
-
[IN] | lSSLPortNumber : File station SSL port number. |
- Returns
- TRUE : Set success.
-
FALSE : Set fail.
BOOL CQtsHttpServer::SetSystemPortNum |
( |
long |
lPortNumber | ) |
|
Set NAS system connection port number.
- Parameters
-
[IN] | lPortNumber : NAS system port number. |
- Returns
- TRUE : Set success.
-
FALSE : Set fail.
BOOL CQtsHttpServer::SetSystemSSLPortNum |
( |
long |
lSSLPortNumber | ) |
|
Set NAS system SSL connection port number.
- Parameters
-
[IN] | lSSLPortNumber : NAS system SSL port number. |
- Returns
- TRUE : Set success.
-
FALSE : Set fail.
BOOL CQtsHttpServer::SetTimeouts |
( |
int |
nTimeOutMilliseconds | ) |
|
Developers can change HTTP time-out value before call QTS NAS system/file station API.
- Parameters
-
[IN] | nTimeOutMilliseconds : HTTP time-out value, in milliseconds. |
- Returns
- TRUE : set HTTP time-out value success.
-
FALSE : set HTTP time-out value fail.
The documentation for this class was generated from the following file: