NetOceanDirect  1.31.0
OceanDirect .NET API
Ipv4Address.h
1 #pragma once
2 #include "ManagedObject.h"
3 
4 namespace NetOceanDirect {
5 
6  public ref class Ipv4Address : public ManagedObject<Ipv4AddressAPI> {
7  Ipv4Address();
8  public:
9  virtual ~Ipv4Address() {};
10  static Ipv4Address^ getInstance();
11 
27  bool isDHCPEnabled(long deviceID, int% errorCode, unsigned char ifNum);
28 
42  void setDHCPEnable(long deviceID, int %errorCode, unsigned char ifNum, unsigned char enabled);
43 
59  int getNumberOfIpAddresses(long deviceID, int% errorCode, unsigned char ifNum);
60 
82  array<unsigned char>^ readIpAddress(long deviceID, int% errorCode, unsigned char ifNum, unsigned char addressIndex,
83  unsigned int% netmask);
84 
104  void addStaticIpAddress(long deviceID, int% errorCode, unsigned char ifNum,
105  array<unsigned char>^% ipAddress, unsigned int netmask);
106 
120  void deleteStaticIpAddress(long deviceID, int% errorCode, unsigned char ifNum, unsigned char addressIndex);
121  private:
122  static Ipv4Address^ ipv4Address;
123  };
124 }
125 
Definition: Ipv4Address.h:6
array< unsigned char > readIpAddress(long deviceID, int% errorCode, unsigned char ifNum, unsigned char addressIndex, unsigned int% netmask)
Definition: Ipv4Address.cpp:32
void setDHCPEnable(long deviceID, int %errorCode, unsigned char ifNum, unsigned char enabled)
Definition: Ipv4Address.cpp:22
void deleteStaticIpAddress(long deviceID, int% errorCode, unsigned char ifNum, unsigned char addressIndex)
Definition: Ipv4Address.cpp:51
void addStaticIpAddress(long deviceID, int% errorCode, unsigned char ifNum, array< unsigned char >^% ipAddress, unsigned int netmask)
Definition: Ipv4Address.cpp:43
int getNumberOfIpAddresses(long deviceID, int% errorCode, unsigned char ifNum)
Definition: Ipv4Address.cpp:27
bool isDHCPEnabled(long deviceID, int% errorCode, unsigned char ifNum)
Definition: Ipv4Address.cpp:17
Definition: ManagedObject.h:8