|
我把我写好的25,23上都可以联网下载的程序,移植到53的09A上,,发现 解析域名时
ret = soc_gethostbyname(
KAL_FALSE,
MOD_MMI,
HTTP,
(kal_char*) DomainAdd,
(kal_uint8*)(&server_ip_addr.addr),
(kal_uint8 *)&server_ip_addr.addr_len,
0,
(kal_uint32) port);
if (ret == SOC_SUCCESS)
{
AlreadyGetDomainIP = TRUE;
}
else if (ret == SOC_WOULDBLOCK)
{
SetProtocolEventHandler(soc_demo_app_soc_get_host_by_name_ind, MSG_ID_APP_SOC_GET_HOST_BY_NAME_IND); } [/COLOR]
void soc_demo_app_soc_get_host_by_name_ind(void *inMsg)
{
/*----------------------------------------------------------------*/
/* Local Variables */
/*----------------------------------------------------------------*/
app_soc_get_host_by_name_ind_struct *dns_ind;
/*----------------------------------------------------------------*/
/* Code Body */
/*----------------------------------------------------------------*/
if (!inMsg)
{
en_soc_output_result(EN_SOC_ERROR, NULL, 0);
}
dns_ind = (app_soc_get_host_by_name_ind_struct*) inMsg;
/* Check if the result is OK */
if (dns_ind->result == KAL_TRUE)[/COLOR]--返回的这个条件却不成立!!!!---请教下,为什么???
{
switch (dns_ind->request_id)
{
case HTTP:
。。。。。。
[em07][em07][em07] |
|