NetOceanDirect  3.1.1
OceanDirect .NET API
Ipv4Address.h
1 #pragma once
2 #include "ManagedObject.h"
3 #include "api/advanced/Ipv4AddressAPI.h"
4 using oceandirect::api::Ipv4AddressAPI;
5 
6 namespace NetOceanDirect {
7 
8  public ref class Ipv4Address : public ManagedObject<Ipv4AddressAPI> {
9  protected:
10  Ipv4Address();
11  public:
12  Ipv4Address(Ipv4AddressAPI* instance);
13 
14  virtual ~Ipv4Address() {};
15  static Ipv4Address^ getInstance();
16 
32  bool isDHCPEnabled(long deviceID, int% errorCode, unsigned char ifNum);
33 
34  bool isDHCPEnabled(long deviceID, int% errorCode);
35 
49  void setDHCPEnable(long deviceID, int %errorCode, unsigned char ifNum, bool enabled);
50 
51  void setDHCPEnable(long deviceID, int% errorCode, bool enabled);
52 
68  int getNumberOfIpAddresses(long deviceID, int% errorCode, unsigned char ifNum);
69 
70  int getNumberOfIpAddresses(long deviceID, int% errorCode);
71 
93  array<unsigned char>^ readIpAddress(long deviceID, int% errorCode, unsigned char ifNum, unsigned char addressIndex, unsigned int% netmask);
94 
95  array<unsigned char>^ readIpAddress(long deviceID, int% errorCode, unsigned char addressIndex, unsigned int% netmask);
96 
116  void addStaticIpAddress(long deviceID, int% errorCode, unsigned char ifNum, array<unsigned char>^% ipAddress, unsigned int netmask);
117 
118  void addStaticIpAddress(long deviceID, int% errorCode, array<unsigned char>^% ipAddress, unsigned int netmask);
119 
133  void deleteStaticIpAddress(long deviceID, int% errorCode, unsigned char ifNum, unsigned char addressIndex);
134 
135  void deleteStaticIpAddress(long deviceID, int% errorCode, unsigned char addressIndex);
136 
155  void setDefaultGatewayIpAddress(long deviceID, int% errorCode, unsigned char ifNum, array<unsigned char>^% ipAddress);
156 
157  void setDefaultGatewayIpAddress(long deviceID, int% errorCode, array<unsigned char>^% ipAddress);
158 
177  array<unsigned char>^ getDefaultGatewayIpAddress(long deviceID, int% errorCode, unsigned char ifNum);
178 
179  array<unsigned char>^ getDefaultGatewayIpAddress(long deviceID, int% errorCode);
180  private:
181  protected:
182  static Ipv4Address^ ipv4Address;
183  };
184 }
185 
Definition: Ipv4Address.h:8
array< unsigned char > readIpAddress(long deviceID, int% errorCode, unsigned char ifNum, unsigned char addressIndex, unsigned int% netmask)
Definition: Ipv4Address.cpp:47
array< unsigned char > getDefaultGatewayIpAddress(long deviceID, int% errorCode, unsigned char ifNum)
Definition: Ipv4Address.cpp:93
void deleteStaticIpAddress(long deviceID, int% errorCode, unsigned char ifNum, unsigned char addressIndex)
Definition: Ipv4Address.cpp:73
void addStaticIpAddress(long deviceID, int% errorCode, unsigned char ifNum, array< unsigned char >^% ipAddress, unsigned int netmask)
Definition: Ipv4Address.cpp:61
void setDefaultGatewayIpAddress(long deviceID, int% errorCode, unsigned char ifNum, array< unsigned char >^% ipAddress)
Definition: Ipv4Address.cpp:82
int getNumberOfIpAddresses(long deviceID, int% errorCode, unsigned char ifNum)
Definition: Ipv4Address.cpp:38
void setDHCPEnable(long deviceID, int %errorCode, unsigned char ifNum, bool enabled)
bool isDHCPEnabled(long deviceID, int% errorCode, unsigned char ifNum)
Definition: Ipv4Address.cpp:20
Definition: ManagedObject.h:16