QTS http server class.
More...
QTS http server class.
- Support to login QNAP Turbo NAS system and file station.
- Open and close QNAP Turbo NAS system/file station.
QtsHttp.Server.Server |
( |
| ) |
|
Constructor with QtsHttpServerInfo server info.
- Parameters
-
[IN] | serverInfo : Qts http server info. |
- Returns
- n/a.
CloseFileStation if QTS_FILESTATION_VERSION = QTS_FILESTATION to close and destroy file station object. Please using try catch mechanism to call this function.
- Parameters
-
[IN] | fileStation : File station object. |
- Returns
- APIResult : API success or fail error code..
CloseSystem if QTSSystemVersion = QTS_SYSTEM to close and destroy NAS system object. Please using try catch mechanism to call this function.
- Parameters
-
[IN] | system : NAS system object. |
- Returns
- APIResult : API success or fail error code..
async Task QtsHttp.Server.Login |
( |
StationType |
loginStation | ) |
|
Login NAS system/file station of QNAP Turbo NAS Server. Please using try catch mechanism to call this function.
- Parameters
-
[IN] | loginStation : Login station type. |
- Returns
- APIResult : API success or fail error code.
OpenFileStation if QTS_FILESTATION_VERSION = QTS_FILESTATION to get file station object.
- Parameters
-
- Returns
- IQtsHttpFileStation : File station object.
OpenSystem if QTSSystemVersion = QTS_SYSTEM to get NAS system object.
- Parameters
-
- Returns
- IQtsHttpSystem : NAS system object.
Query file station SDK version.
- Parameters
-
- Returns
- QTSFileStationVersion : File station API version.
Query NAS system SDK version.
- Parameters
-
- Returns
- QTSSystemVersion : NAS system API version.
bool QtsHttp.Server.SetAgentName |
( |
string |
strAgenName | ) |
|
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 QtsHttp.Server.SetFileStationPortNum |
( |
long |
lPortNumber | ) |
|
Set file station connection port number.
- Parameters
-
[IN] | lPortNumber : File station port number. |
- Returns
- true : Set success.
-
false : Set fail.
bool QtsHttp.Server.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: