NetOceanDirect  2.4.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 
29  bool isDHCPEnabled(long deviceID, int% errorCode);
30 
44  void setDHCPEnable(long deviceID, int %errorCode, unsigned char ifNum, bool enabled);
45 
46  void setDHCPEnable(long deviceID, int% errorCode, bool enabled);
47 
63  int getNumberOfIpAddresses(long deviceID, int% errorCode, unsigned char ifNum);
64 
65  int getNumberOfIpAddresses(long deviceID, int% errorCode);
66 
88  array<unsigned char>^ readIpAddress(long deviceID, int% errorCode, unsigned char ifNum, unsigned char addressIndex, unsigned int% netmask);
89 
90  array<unsigned char>^ readIpAddress(long deviceID, int% errorCode, unsigned char addressIndex, unsigned int% netmask);
91 
111  void addStaticIpAddress(long deviceID, int% errorCode, unsigned char ifNum, array<unsigned char>^% ipAddress, unsigned int netmask);
112 
113  void addStaticIpAddress(long deviceID, int% errorCode, array<unsigned char>^% ipAddress, unsigned int netmask);
114 
128  void deleteStaticIpAddress(long deviceID, int% errorCode, unsigned char ifNum, unsigned char addressIndex);
129 
130  void deleteStaticIpAddress(long deviceID, int% errorCode, unsigned char addressIndex);
131 
150  void setDefaultGatewayIpAddress(long deviceID, int% errorCode, unsigned char ifNum, array<unsigned char>^% ipAddress);
151 
152  void setDefaultGatewayIpAddress(long deviceID, int% errorCode, array<unsigned char>^% ipAddress);
153 
172  array<unsigned char>^ getDefaultGatewayIpAddress(long deviceID, int% errorCode, unsigned char ifNum);
173 
174  array<unsigned char>^ getDefaultGatewayIpAddress(long deviceID, int% errorCode);
175  private:
176  static Ipv4Address^ ipv4Address;
177  };
178 }
179 
Definition: Ipv4Address.h:6
array< unsigned char > readIpAddress(long deviceID, int% errorCode, unsigned char ifNum, unsigned char addressIndex, unsigned int% netmask)
Definition: Ipv4Address.cpp:44
array< unsigned char > getDefaultGatewayIpAddress(long deviceID, int% errorCode, unsigned char ifNum)
Definition: Ipv4Address.cpp:90
void deleteStaticIpAddress(long deviceID, int% errorCode, unsigned char ifNum, unsigned char addressIndex)
Definition: Ipv4Address.cpp:70
void addStaticIpAddress(long deviceID, int% errorCode, unsigned char ifNum, array< unsigned char >^% ipAddress, unsigned int netmask)
Definition: Ipv4Address.cpp:58
void setDefaultGatewayIpAddress(long deviceID, int% errorCode, unsigned char ifNum, array< unsigned char >^% ipAddress)
Definition: Ipv4Address.cpp:79
int getNumberOfIpAddresses(long deviceID, int% errorCode, unsigned char ifNum)
Definition: Ipv4Address.cpp:35
void setDHCPEnable(long deviceID, int %errorCode, unsigned char ifNum, bool enabled)
bool isDHCPEnabled(long deviceID, int% errorCode, unsigned char ifNum)
Definition: Ipv4Address.cpp:17
Definition: ManagedObject.h:8