Tizen Native API  6.5
Smart Traffic Control

The STC API provides functions for managing and monitoring network packets.

Required Header

#include <stc.h>

Overview

This functions is used to initialize the settings of Smart Traffic Control.

Related Features

This API is related with the following features:

It is recommended to use features in your application for reliability.

You can check if a device supports the related features for this API by using System Information, thereby controlling the procedure of your application.

To ensure your application is only running on the device with specific features, please define the features in your manifest file using the manifest editor in the SDK.

More details on featuring your application can be found from Feature Element.

Functions

int stc_initialize (stc_h *stc)
 Initializes STC (Smart Traffic Control).
int stc_deinitialize (stc_h stc)
 Deinitializes STC.

Typedefs

typedef void * stc_h
 The smart traffic control handle.

Typedef Documentation

typedef void* stc_h

The smart traffic control handle.

Since :
4.0

Enumeration Type Documentation

Enumeration for Smart Traffic Control (STC) error type.

Since :
4.0
Enumerator:
STC_ERROR_NONE 

Successful

STC_ERROR_NOT_PERMITTED 

Operation not permitted(1)

STC_ERROR_OUT_OF_MEMORY 

Out of memory(12)

STC_ERROR_PERMISSION_DENIED 

Permission denied(13)

STC_ERROR_RESOURCE_BUSY 

Device or resource busy(16)

STC_ERROR_INVALID_OPERATION 

Invalid operation(38)

STC_ERROR_INVALID_PARAMETER 

Invalid function parameter(22)

STC_ERROR_NOT_SUPPORTED 

Not supported

STC_ERROR_OPERATION_FAILED 

Operation failed

STC_ERROR_NOT_INITIALIZED 

Not initialized

STC_ERROR_ALREADY_INITIALIZED 

Already initialized

STC_ERROR_IN_PROGRESS 

In progress


Function Documentation

int stc_deinitialize ( stc_h  stc)

Deinitializes STC.

Since :
4.0
Parameters:
[in]stcThe STC handle
Returns:
0 on success, otherwise a negative error value
Return values:
STC_ERROR_NONESuccessful
STC_ERROR_OPERATION_FAILEDGeneral error
STC_ERROR_OUT_OF_MEMORYOut of memory
STC_ERROR_INVALID_PARAMETERInvalid parameter
STC_ERROR_INVALID_OPERATIONInvalid operation
STC_ERROR_NOT_INITIALIZEDNot initialized
STC_ERROR_NOT_SUPPORTEDNot supported
See also:
stc_h
stc_initialize()
int stc_initialize ( stc_h stc)

Initializes STC (Smart Traffic Control).

Since :
4.0
Privilege Level:
public
Privilege:
http://tizen.org/privilege/network.get
Remarks:
You must release stc using stc_deinitialize().
Parameters:
[out]stcThe STC handle
Returns:
0 on success, otherwise a negative error value
Return values:
STC_ERROR_NONESuccessful
STC_ERROR_OPERATION_FAILEDGeneral error
STC_ERROR_OUT_OF_MEMORYOut of memory
STC_ERROR_INVALID_PARAMETERInvalid parameter
STC_ERROR_INVALID_OPERATIONInvalid operation
STC_ERROR_NOT_SUPPORTEDNot supported
STC_ERROR_PERMISSION_DENIEDPermission denied
See also:
stc_h
stc_deinitialize()