is it possible to detect multiple IP addresses or Adapters in a computer? I want to list all the possible choices of the IPs available in a program. Anyone have examples or code or an overview of how its done?
// EnumProtocols() lists each lana number twice, once for
// SOCK_DGRAM and once for SOCK_SEQPACKET. Set a flag in
// pfLanas so unique lanas can be identified.
memset(pfLanas, 0, sizeof(pfLanas));
while (iRC > 0) {
// Scan protocols looking for AF_INET (TCP, IP).
if (pPI[--iRC].iAddressFamily == AF_INET)
// found one
pfLanas[abs(pPI[iRC].iProtocol)] = TRUE;
}
}
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.