> Channel 27 is running continuous repeats of Are You Being Served? > Channel 28 is running continuous repeats of Fawlty Towers > Channel 29 is running continuous repeats of Yes Minister > Channel 30 is running "The Best of British Comedy"
char aubs[] = "Are You Being Served" char ft[] = "Faulty Towers" char ym[] = "Yes Minister" char bobc[] = "Best of British Comedy" switch (OID) { case chan27: return aubs; break; case chan28: return ft; break; case chan29: return ym; break; case chan30: return bobc; break; default: break; } > So if you flip between channels 29 and 30 (say) you may well see > exactly the same programme (*without* adverts, I might add!) > > But there's only one videotape (remember tham?) playing for both > channels. Actually channel 30 and 29 do not share the video tape. From the code you see OID channel 30 always returns the data behind bobc. That happens to be The Best Of British Comedy which could by coincidence be showing the same show as on channel 29. But channel 29's data point is ym, which is entirely separate from bobc. Stretching it a bit such that the strings defined above are actual TV show feeds (which could change over time), then we could do this: case chan30: if (bobc == ym) return ym; else return bobc; break; This is how we can get chan30 to return the value normally reserved for the OID chan29. But otherwise they are entirely separate OIDs giving only the value for the data point for which it has been coded to return. BTW, I know you need to use strcmp for the if statement, but didn't feel like looking up the syntax. So if I still remember the original question started from the 1st analogy -- I guess the point I'm trying to make is that there is an OID to data relationship as follows. The normal OID case: chan30 = bobc The OID case described above: chan30 = bobc or ym And the case (I think) from the original post - where two OIDs point to a single data variable (that's actually the 'or'-side from the OID case above: chan29 = ym chan30 = ym Not my intention to beat this horse to death. Just trying to be clear. Feel free to fix any logic I may have messed up here. Carlos ------------------------------------------------------- This SF.Net email is sponsored by the new InstallShield X. >From Windows to Linux, servers to mobile, InstallShield X is the one installation-authoring solution that does it all. Learn more and evaluate today! http://www.installshield.com/Dev2Dev/0504 _______________________________________________ Net-snmp-users mailing list [EMAIL PROTECTED] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users