Namespace: Rx – Class: CRxIPv4Subnetmask – Header: Rx.Core/RxIPv4Subnetmask.h

CRxIPv4Subnetmask::Get Method

C++
void Get(unsigned char& ucSub1, unsigned char& ucSub2, unsigned char& ucSub3, unsigned char& ucSub4)

Gets the subnet mask with each of the 4 parts in a unsigned char. Example for 255.255.0.0 would be:

  • ucSub1 = 255;
  • ucSub2 = 255;
  • ucSub3 = 0;
  • ucSub4 = 0;

Parameters

[unsigned char&] ucSub1

[in,out] The first part of the subnet mask.

[unsigned char&] ucSub2

[in,out] The second part of the subnet mask.

[unsigned char&] ucSub3

[in,out] The third part of the subnet mask.

[unsigned char&] ucSub4

[in,out] The fourth part of the subnet mask.