source/Sources/AirPlayReceiverServer.c
static void _HijackConnections( AirPlayReceiverServerRef inServer, HTTPConnectionRef inHijacker )
{	
	if( !inServer )				return;
	if( !inServer->httpServer )	return;
	
	// Close any connections that have started audio (should be 1 connection at most).
	// This leaves connections that haven't started audio because they may just be doing OPTIONS requests, etc.
	
	_HijackHTTPServerConnections( inServer->httpServer, inHijacker );
	
#if( AIRPLAY_HTTP_SERVER_LEGACY )
	if( !inServer->httpServerLegacy )	return;
	_HijackHTTPServerConnections( inServer->httpServerLegacy, inHijacker );
#endif
}
//===========================================================================================================================
//	_HijackConnections
//
//	This function should be called on inServer->httpQueue.
//===========================================================================================================================
_HijackConnections
This function should be called on inServer->httpQueue.
_HijackConnections This function should be called on inServer - > httpQueue .
static void _HijackConnections( AirPlayReceiverServerRef inServer, HTTPConnectionRef inHijacker )
{	
	if( !inServer )				return;
	if( !inServer->httpServer )	return;
	_HijackHTTPServerConnections( inServer->httpServer, inHijacker );
#if( AIRPLAY_HTTP_SERVER_LEGACY )
	if( !inServer->httpServerLegacy )	return;
	_HijackHTTPServerConnections( inServer->httpServerLegacy, inHijacker );
#endif
}
static void _HijackConnections ( AirPlayReceiverServerRef inServer , HTTPConnectionRef inHijacker ) { if ( ! inServer ) return ; if ( ! inServer -> httpServer ) return ; _HijackHTTPServerConnections ( inServer -> httpServer , inHijacker ) ; #if ( AIRPLAY_HTTP_SERVER_LEGACY ) if ( ! inServer -> httpServerLegacy ) return ; _HijackHTTPServerConnections ( inServer -> httpServerLegacy , inHijacker ) ; #endif }
_HijackConnections
This function should be called on inServer->httpQueue.
_HijackConnections This function should be called on inServer - > httpQueue .
// Close any connections that have started audio (should be 1 connection at most). // This leaves connections that haven't started audio because they may just be doing OPTIONS requests, etc.