[MPlayer-users] embeded the Mplayer.and the MPlayer cannot connect to
George.Tung
dxzk7 at 163.com
Thu Aug 16 09:05:40 CEST 2007
>> the command is "./mplayer
>> mms://chx1.ccdentech.com/wmtencoder/rti/cbs4.wmv"
>>
>> system informed me:
>>
>> cannot resolv the name for chx1.ccdentech.com
>
>
> Your computer can't resolve the domain to IP. This may be caused by your
> DNS server.
>
> Thanks,
>
> Yujin
my dns work well.
I build a sample program.
int main(int argc,char *argv[])
{
/***********************************/
struct hostent *h;
if(argc!=2)
exit(1);
printf("host name: %s\n",argv[1]);
char *host=www.yahoo.com
if((h=gethostbyname2(host,AF_INET))==NULL)
{
herror("gethostbyname2");
exit(1);
}
printf("host name: %s\n",h->h_name);
printf("IP Address: %s\n",inet_ntoa(*((struct in_addr *)h->h_addr)));
return 0;
/***********************************/
}
and the function "gethostbyname2" can resolv the www.yahoo.com .
but I insert the coder to Mplayer .the function "gethostbyname2" return h="NULL"
why???
I'm puzzled.
More information about the MPlayer-users
mailing list