|
RDK Documentation (Open Sourced RDK Components)
|
Go to the documentation of this file.
56 #ifndef DEVICE_IP_ACTIVEPORT_H_
57 #define DEVICE_IP_ACTIVEPORT_H_
63 #include "hostIf_tr69ReqHandler.h"
64 #include "hostIf_utils.h"
65 #include "hostIf_updateHandler.h"
67 #define _LENGTH_PARAMETER 64
68 #define _LENGTH_IPADDR 16
69 #define _LENGTH_STATUS 12
70 #define _HEX_STATE_LEN 3
125 char localIpAddress[_LENGTH_IPADDR];
126 unsigned int localPort;
127 char remoteIpAddress[_LENGTH_IPADDR];
128 unsigned int remotePort;
129 char status[_LENGTH_STATUS];
139 static GHashTable *ifHash;
141 static GMutex *m_mutex;
147 bool bCalledLocalIPAddress;
148 bool bCalledLocalPort;
149 bool bCalledRemoteIPAddress;
150 bool bCalledRemotePort;
153 char backupLocalIPAddress[_LENGTH_IPADDR];
154 char backupRemoteIPAddress[_LENGTH_IPADDR];
155 char backupStatus[_LENGTH_IPADDR];
156 unsigned int backupLocalPort;
157 unsigned int backupRemotePort;
163 int getActivePortsFields(
unsigned int activePortNo);
171 static GList* getAllInstances();
173 static void closeAllInstances();
175 static void getLock();
177 static void releaseLock();
int get_Device_IP_ActivePort_RemoteIPAddress(HOSTIF_MsgData_t *, bool *pChanged=NULL)
This function gets the remote IP Address of the established connection. It provides the remote IP add...
This class provides the hostIf IP active port for getting IP active port information.
int get_Device_IP_ActivePort_RemotePort(HOSTIF_MsgData_t *, bool *pChanged=NULL)
This function gets the remote port number of the established connection. It provides the remote port ...
int get_Device_IP_ActivePort_LocalIPAddress(HOSTIF_MsgData_t *, bool *pChanged=NULL)
This function gets the local IP Address of the connection.
int get_Device_IP_ActivePort_LocalPort(HOSTIF_MsgData_t *, bool *pChanged=NULL)
This function gets the local port number of the connection.
The structure holds the required parameters such as local ipaddress, localport, remoteIpAddress etc....
int get_Device_IP_ActivePort_Status(HOSTIF_MsgData_t *, bool *pChanged=NULL)
This function gets the current operational status of the connection. The possible values are 'LISTEN'...
hostIf_IPActivePort(int dev_id)
Class Constructor of the class hostIf_IPActivePort.