Hi to all
i try to test DNSGetHostname() in NIMU_emacExample from PDK_c667x_2.0.0 (my device and packages: TMS320c6678 ccs 6.1.2 bios_6_45_01_29 ndk_2_24_03_35)
NDK document said : "This function is quite similar to BSD's gethostname()" and i add DNSGetHostname() before NC_NetStart() :
char hostname_1[128];
hostname_1[127] = '\0';
int rc_3;
...
//EA: test gethostname
rc_3=DNSGetHostname(hostname_1, sizeof(hostname_1));
//
//
// Boot the system using this configuration
//
// We keep booting until the function returns 0. This allows
// us to have a "reboot" command.
//
do
{
rc = NC_NetStart( hCfg, NetworkOpen, NetworkClose, NetworkIPAddr );
} while( rc > 0 );
i expect see "tidsp" in hostname_1 ,but buffer is empty and return value is 0 !
i can't find any example or E2E post about DNSGetHostname . anybody can help me how to use this function?
thanks
Ebi