socket error

raghavendra dp <[email protected]> Thu, 11 Mar 2004 04:36:29 +0000 (GMT)
Newsgroups gmane.linux.upnp-sdk.general
Message-ID <[email protected]>
hi
when i try to execute the device application(sample) given with upnp sdk.
 
./upnp_tv_device -ip 172.16.3.157 -port 2000
 
error is 
"Error with UpnpInit -- -208 

<<

I tried and come to know that it is giving error in the following  block of statements.


if( setsockopt( ssdpSock, IPPROTO_IP, IP_ADD_MEMBERSHIP,

( char * )&ssdpMcastAddr,

sizeof( struct ip_mreq ) ) != 0 ) {

DBGONLY( UpnpPrintf

( UPNP_CRITICAL, SSDP, __FILE__, __LINE__,

"Error in joining" " multicast group !!!\n" );

)

shutdown( ssdpSock, SD_BOTH );

CLIENTONLY( shutdown( ssdpReqSock, SD_BOTH ) );

UpnpCloseSocket( ssdpSock );

CLIENTONLY( UpnpCloseSocket( ssdpReqSock ) );

return UPNP_E_SOCKET_ERROR;

}


can any one give me guidelines for this
thanks in advance
raghu

 


Yahoo! India Insurance Special: Be informed on the best policies, services, tools and more.