White spaces.

git-svn-id: https://pupnp.svn.sourceforge.net/svnroot/pupnp/trunk@227 119443c7-1b9e-41f8-b6fc-b9c35fce742c
This commit is contained in:
Marcelo Roberto Jimenez
2007-11-05 12:25:18 +00:00
parent cb7e6b7472
commit c69e16b347
2 changed files with 16 additions and 21 deletions

View File

@@ -242,7 +242,7 @@ NewRequestHandler( IN struct sockaddr_in *DestAddr,
// "If a multicast resource would send a response(s) to any copy of the // "If a multicast resource would send a response(s) to any copy of the
// request, it SHOULD send its response(s) to each copy of the request // request, it SHOULD send its response(s) to each copy of the request
// it receives. It MUST NOT repeat its response(s) per copy of the // it receives. It MUST NOT repeat its response(s) per copy of the
// reuqest." // request."
// //
// http://www.upnp.org/download/draft-goland-http-udp-04.txt // http://www.upnp.org/download/draft-goland-http-udp-04.txt
// //
@@ -530,7 +530,6 @@ SendReply( IN struct sockaddr_in *DestAddr,
* IN char * Udn: Device UDN * IN char * Udn: Device UDN
* IN char * Location: Location of Device description document. * IN char * Location: Location of Device description document.
* IN int Duration :Life time of this device. * IN int Duration :Life time of this device.
* Description: * Description:
* This function creates the reply packet based on the input parameter, * This function creates the reply packet based on the input parameter,
* and send it to the client address given in its input parameter DestAddr. * and send it to the client address given in its input parameter DestAddr.

View File

@@ -322,8 +322,9 @@ int AdvertiseAndReply( IN int AdFlag,
} }
for( j = 0;; j++ ) { for( j = 0;; j++ ) {
tmpNode = ixmlNodeList_item( nodeList, j ); tmpNode = ixmlNodeList_item( nodeList, j );
if( tmpNode == NULL ) if( tmpNode == NULL ) {
break; break;
}
ixmlNodeList_free( tmpNodeList ); ixmlNodeList_free( tmpNodeList );
tmpNodeList = NULL; tmpNodeList = NULL;
@@ -332,7 +333,7 @@ int AdvertiseAndReply( IN int AdFlag,
if( tmpNodeList == NULL ) { if( tmpNodeList == NULL ) {
UpnpPrintf( UPNP_CRITICAL, API, __FILE__, __LINE__, UpnpPrintf( UPNP_CRITICAL, API, __FILE__, __LINE__,
"ServiceType not found \n" ); "ServiceType not found \n" );
continue; continue;
} }
tmpNode2 = ixmlNodeList_item( tmpNodeList, 0 ); tmpNode2 = ixmlNodeList_item( tmpNodeList, 0 );
if( tmpNode2 == NULL ) { if( tmpNode2 == NULL ) {
@@ -365,26 +366,21 @@ int AdvertiseAndReply( IN int AdFlag,
} else { } else {
switch ( SearchType ) { switch ( SearchType ) {
case SSDP_ALL: case SSDP_ALL:
{ ServiceReply( DestAddr, servType,
ServiceReply( DestAddr, servType, UDNstr, SInfo->DescURL,
UDNstr, SInfo->DescURL, defaultExp );
defaultExp ); break;
break;
}
case SSDP_SERVICE: case SSDP_SERVICE:
{ if( ServiceType != NULL ) {
if( ServiceType != NULL ) { if( !strncasecmp( ServiceType,
if( !strncasecmp( ServiceType, servType,
servType, strlen( ServiceType ) ) ) {
strlen( ServiceType ) ) ) ServiceReply( DestAddr, servType,
{ UDNstr, SInfo->DescURL,
ServiceReply( DestAddr, servType, defaultExp );
UDNstr, SInfo->DescURL,
defaultExp );
}
} }
break;
} }
break;
default: default:
break; break;
} // switch(SearchType) } // switch(SearchType)