Namespace: Rx – Class: CRxIPv4 – Header: Rx.Core/RxIPv4.h

CRxIPv4::Get Method

C++
void Get(unsigned char& ucIP1, unsigned char& ucIP2, unsigned char& ucIP3, unsigned char& ucIP4)

Gets the IP address with each of the 4 parts in a unsigned char. Example for 10.0.0.1 would be:

  • ucIP1 = 10;
  • ucIP2 = 0;
  • ucIP3 = 0;
  • ucIP4 = 1;

Parameters

[unsigned char&] ucIP1

[in,out] The first part.

[unsigned char&] ucIP2

[in,out] The second part.

[unsigned char&] ucIP3

[in,out] The third part.

[unsigned char&] ucIP4

[in,out] The fourth part.